diff options
author | Araq <rumpf_a@web.de> | 2012-11-21 21:00:54 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-11-21 21:00:54 +0100 |
commit | 66ae9bc609bc4feeab9c9390a5aba85eefbbb595 (patch) | |
tree | 84b4fb20b9f79402469abe79ef03b3d7dad059e1 /compiler | |
parent | 46f92c31aad6b9de199bb3ad20e79bda9018cf4e (diff) | |
download | Nim-66ae9bc609bc4feeab9c9390a5aba85eefbbb595.tar.gz |
fixes 259
Diffstat (limited to 'compiler')
-rwxr-xr-x | compiler/treetab.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/treetab.nim b/compiler/treetab.nim index 66f7475f6..75e3fd20a 100755 --- a/compiler/treetab.nim +++ b/compiler/treetab.nim @@ -22,7 +22,7 @@ proc hashTree(n: PNode): THash = result = result !& n.ident.h of nkSym: result = result !& n.sym.name.h - of nkCharLit..nkInt64Lit: + of nkCharLit..nkUInt64Lit: if (n.intVal >= low(int)) and (n.intVal <= high(int)): result = result !& int(n.intVal) of nkFloatLit..nkFloat64Lit: @@ -42,7 +42,7 @@ proc TreesEquivalent(a, b: PNode): bool = of nkEmpty, nkNilLit, nkType: result = true of nkSym: result = a.sym.id == b.sym.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 else: |