diff options
author | Araq <rumpf_a@web.de> | 2014-12-30 03:05:29 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-12-30 03:05:29 +0100 |
commit | 7f415b5b116883d96d514864f2796b479d554d7e (patch) | |
tree | 6c9b078a14675688a8fdc6748c2bc582a6a59f5f /compiler | |
parent | f30a1617caaecdc2578aea608b5173d782d1a1ae (diff) | |
download | Nim-7f415b5b116883d96d514864f2796b479d554d7e.tar.gz |
fixes #1788
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/ast.nim | 4 |
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 = "" |