diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-08-26 13:32:52 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-08-26 13:32:52 +0200 |
commit | 969981c1da0e07d9d6867609a335c625779c04c3 (patch) | |
tree | 88aba748cde2046655d5e9d21918a004101c7b51 | |
parent | e16bd735c48464ef5efcc48afbcbbd49cbf3cc74 (diff) | |
download | Nim-969981c1da0e07d9d6867609a335c625779c04c3.tar.gz |
fixes #3606
-rw-r--r-- | compiler/ast.nim | 2 |
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 |