Proposed fix for issue #1946

This commit is contained in:
Audun Wilhelmsen
2015-01-16 22:32:00 +01:00
parent f25c47db1a
commit ca257efc84

View File

@@ -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)