summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-02-16 23:20:01 +0100
committerAraq <rumpf_a@web.de>2017-02-16 23:20:01 +0100
commitbdd9f971e7b1f8c1fde54abdb3032ba697b059bd (patch)
tree6862ffb0c3155ca70cc03b89a034bf9500412525 /compiler
parent9534a5d6328e6e4df94d4a8f038a388dfdf56c49 (diff)
downloadNim-bdd9f971e7b1f8c1fde54abdb3032ba697b059bd.tar.gz
update code from a time when unsigned didn't exist
Diffstat (limited to 'compiler')
-rw-r--r--compiler/trees.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/trees.nim b/compiler/trees.nim
index 79a460aa0..424fba14c 100644
--- a/compiler/trees.nim
+++ b/compiler/trees.nim
@@ -62,7 +62,7 @@ proc sameTree*(a, b: PNode): 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