summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-12 21:40:24 +0100
committerAraq <rumpf_a@web.de>2014-01-12 21:40:24 +0100
commit137e97154729726d650d1aa75042e7604fb266f9 (patch)
treed79624411567ce539d665c946368e984841aff13 /compiler
parent346443d1b552574c1f259cd9e6080c2d0063fa9c (diff)
downloadNim-137e97154729726d650d1aa75042e7604fb266f9.tar.gz
new vm: bugfix
Diffstat (limited to 'compiler')
-rw-r--r--compiler/vm.nim2
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)