summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAudun Wilhelmsen <skyfex@gmail.com>2015-01-16 22:32:00 +0100
committerAudun Wilhelmsen <skyfex@gmail.com>2015-01-16 22:32:00 +0100
commitca257efc84d6612665123349710f844d1d51be99 (patch)
tree357253d1e77338aea8e35b9b90aa3b7c3774e0e6
parentf25c47db1ae7659785ef59964e353304dc5b01ee (diff)
downloadNim-ca257efc84d6612665123349710f844d1d51be99.tar.gz
Proposed fix for issue #1946
-rw-r--r--compiler/vm.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/vm.nim b/compiler/vm.nim
index f69b9281d..ae5fcb43f 100644
--- a/compiler/vm.nim
+++ b/compiler/vm.nim
@@ -984,6 +984,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
       let rb = instr.regBx - wordExcess
       let cnst = c.constants.sons[rb]
       if fitsRegister(cnst.typ):
+        myreset(regs[ra])
         putIntoReg(regs[ra], cnst)
       else:
         ensureKind(rkNode)