summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-08-26 13:32:52 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-08-26 13:32:52 +0200
commit969981c1da0e07d9d6867609a335c625779c04c3 (patch)
tree88aba748cde2046655d5e9d21918a004101c7b51
parente16bd735c48464ef5efcc48afbcbbd49cbf3cc74 (diff)
downloadNim-969981c1da0e07d9d6867609a335c625779c04c3.tar.gz
fixes #3606
-rw-r--r--compiler/ast.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index 5ed458aff..d301417ac 100644
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -1497,7 +1497,7 @@ proc hasSubnodeWith*(n: PNode, kind: TNodeKind): bool =
 
 proc getInt*(a: PNode): BiggestInt =
   case a.kind
-  of nkIntLit..nkUInt64Lit: result = a.intVal
+  of nkCharLit..nkUInt64Lit: result = a.intVal
   else:
     internalError(a.info, "getInt")
     result = 0