summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-12-30 03:05:29 +0100
committerAraq <rumpf_a@web.de>2014-12-30 03:05:29 +0100
commit7f415b5b116883d96d514864f2796b479d554d7e (patch)
tree6c9b078a14675688a8fdc6748c2bc582a6a59f5f /compiler
parentf30a1617caaecdc2578aea608b5173d782d1a1ae (diff)
downloadNim-7f415b5b116883d96d514864f2796b479d554d7e.tar.gz
fixes #1788
Diffstat (limited to 'compiler')
-rw-r--r--compiler/ast.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim
index 565bb4353..d85dbf42c 100644
--- a/compiler/ast.nim
+++ b/compiler/ast.nim
@@ -1517,8 +1517,8 @@ proc getStr*(a: PNode): string =
 proc getStrOrChar*(a: PNode): string = 
   case a.kind
   of nkStrLit..nkTripleStrLit: result = a.strVal
-  of nkCharLit: result = $chr(int(a.intVal))
-  else: 
+  of nkCharLit..nkUInt64Lit: result = $chr(int(a.intVal))
+  else:
     internalError(a.info, "getStrOrChar")
     result = ""