fixes #4906
This commit is contained in:
parent
d60448fa69
commit
50dc712d5e
1 changed files with 1 additions and 1 deletions
|
|
@ -900,7 +900,7 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
|
||||||
if newPc < pc: handleJmpBack()
|
if newPc < pc: handleJmpBack()
|
||||||
#echo "new pc ", newPc, " calling: ", prc.name.s
|
#echo "new pc ", newPc, " calling: ", prc.name.s
|
||||||
var newFrame = PStackFrame(prc: prc, comesFrom: pc, next: tos)
|
var newFrame = PStackFrame(prc: prc, comesFrom: pc, next: tos)
|
||||||
newSeq(newFrame.slots, prc.offset)
|
newSeq(newFrame.slots, prc.offset+ord(isClosure))
|
||||||
if not isEmptyType(prc.typ.sons[0]) or prc.kind == skMacro:
|
if not isEmptyType(prc.typ.sons[0]) or prc.kind == skMacro:
|
||||||
putIntoReg(newFrame.slots[0], getNullValue(prc.typ.sons[0], prc.info))
|
putIntoReg(newFrame.slots[0], getNullValue(prc.typ.sons[0], prc.info))
|
||||||
for i in 1 .. rc-1:
|
for i in 1 .. rc-1:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue