make sure that we restore even if only the X registers moved.

This commit is contained in:
Vítor Santos Costa 2008-12-28 11:00:05 +00:00
parent 95a15bb689
commit 5e09d8e1bd

View File

@ -1602,7 +1602,8 @@ check_opcodes(OPCODE old_ops[])
static void
RestoreHeap(OPCODE old_ops[])
{
int heap_moved = (OldHeapBase != Yap_HeapBase), opcodes_moved;
int heap_moved = (OldHeapBase != Yap_HeapBase ||
XDiff), opcodes_moved;
Term mod = CurrentModule;
CurrentModule = PROLOG_MODULE;