summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2015-04-09 09:37:05 +0200
committerAndreas Rumpf <rumpf_a@web.de>2015-04-09 09:37:05 +0200
commitfdadc177d49a7384436d5dce773ef9630fda90e7 (patch)
tree6fc3ae9d8603b4b9430df5aaa7789e0bca3c7317 /compiler
parentcb1c621a05c7bd3cfd77558d7626721c59bfdd16 (diff)
parente336da9dd98ed4befa2b46771b3f40888676e4db (diff)
downloadNim-fdadc177d49a7384436d5dce773ef9630fda90e7.tar.gz
Merge pull request #2499 from JosephTurner/fix-uint-segv
Fixes #1986 when calling sameConstant on uint
Diffstat (limited to 'compiler')
-rw-r--r--compiler/vmgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vmgen.nim b/compiler/vmgen.nim
index 3178bee60..c3013852d 100644
--- a/compiler/vmgen.nim
+++ b/compiler/vmgen.nim
@@ -368,7 +368,7 @@ proc sameConstant*(a, b: PNode): bool =
     case a.kind
     of nkSym: result = a.sym == b.sym
     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 nkType, nkNilLit: result = a.typ == b.typ