diff options
author | def <dennis@felsin9.de> | 2015-05-18 21:31:24 +0200 |
---|---|---|
committer | def <dennis@felsin9.de> | 2015-05-18 21:31:24 +0200 |
commit | 51de44be7954a1c3f3499c5a2a6adcaceec33e3f (patch) | |
tree | bd6c590990e0d4103df8c750c582ca8b1715cf92 /compiler/vm.nim | |
parent | 63f1e0327817b0e7abacc3c0214ea94980f5c2ea (diff) | |
download | Nim-51de44be7954a1c3f3499c5a2a6adcaceec33e3f.tar.gz |
Make intVal work for uint literals in the VM
Diffstat (limited to 'compiler/vm.nim')
-rw-r--r-- | compiler/vm.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim index 1c6c9a30b..560c38d14 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -1121,7 +1121,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg = decodeB(rkInt) let a = regs[rb].node case a.kind - of nkCharLit..nkInt64Lit: regs[ra].intVal = a.intVal + of nkCharLit..nkUInt64Lit: regs[ra].intVal = a.intVal else: stackTrace(c, tos, pc, errFieldXNotFound, "intVal") of opcNFloatVal: decodeB(rkFloat) |