diff options
author | Araq <rumpf_a@web.de> | 2014-01-12 21:40:24 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-01-12 21:40:24 +0100 |
commit | 137e97154729726d650d1aa75042e7604fb266f9 (patch) | |
tree | d79624411567ce539d665c946368e984841aff13 /compiler | |
parent | 346443d1b552574c1f259cd9e6080c2d0063fa9c (diff) | |
download | Nim-137e97154729726d650d1aa75042e7604fb266f9.tar.gz |
new vm: bugfix
Diffstat (limited to 'compiler')
-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 0a1ee0a1a..94891feb2 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -427,7 +427,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): PNode = regs[ra].intVal = regs[rb].skipMeta.len - imm of opcLenStr: decodeBImm(nkIntLit) - assert regs[rb].kind == nkStrLit + assert regs[rb].kind in {nkStrLit..nkTripleStrLit} regs[ra].intVal = regs[rb].strVal.len - imm of opcIncl: decodeB(nkCurly) |