diff options
author | Araq <rumpf_a@web.de> | 2017-02-16 22:59:07 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-02-16 22:59:07 +0100 |
commit | 9534a5d6328e6e4df94d4a8f038a388dfdf56c49 (patch) | |
tree | 9603b4bb711165a2509cf70352a5f88edcfcda27 | |
parent | 5d4ed1117de41e0907536437292688d77aa6f01b (diff) | |
download | Nim-9534a5d6328e6e4df94d4a8f038a388dfdf56c49.tar.gz |
fixes #5391
-rw-r--r-- | compiler/trees.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/trees.nim b/compiler/trees.nim index 7208f7d7b..79a460aa0 100644 --- a/compiler/trees.nim +++ b/compiler/trees.nim @@ -38,7 +38,7 @@ proc exprStructuralEquivalent*(a, b: PNode; strictSymEquality=false): bool = # don't go nuts here: same symbol as string is enough: result = a.sym.name.id == b.sym.name.id of nkIdent: result = a.ident.id == b.ident.id - of nkCharLit..nkInt64Lit: result = a.intVal == b.intVal + of nkCharLit..nkUInt64Lit: result = a.intVal == b.intVal of nkFloatLit..nkFloat64Lit: result = a.floatVal == b.floatVal of nkStrLit..nkTripleStrLit: result = a.strVal == b.strVal of nkEmpty, nkNilLit, nkType: result = true |