fix bad handle recovery properly.
This commit is contained in:
parent
7c8e2bbd16
commit
0aa91d7c00
@ -146,7 +146,7 @@ Yap_RecoverSlots(int n, Int topSlot USES_REGS)
|
|||||||
if (ASP+1 != LCL0+topSlot)
|
if (ASP+1 != LCL0+topSlot)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
ASP += n;
|
ASP += n;
|
||||||
ASP[old_slots+(n-old_slots+1)] = ASP[0] = MkIntTerm(old_slots-n);
|
ASP[old_slots+(n-1)] = ASP[0] = MkIntTerm(old_slots-n);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user