fix stupid typo.

This commit is contained in:
Costa Vitor 2009-09-12 16:45:00 -05:00
parent c0fd49df34
commit a1d44f068e

View File

@ -820,7 +820,7 @@ static_growglobal(long request, CELL **ptr, CELL *hsplit)
LDiff = TrDiff = size;
} else {
/* we may still have an overflow */
BaseDiff = Yap_GlobalBase != old_GlobalBase;
BaseDiff = Yap_GlobalBase - old_GlobalBase;
/* if we grow, we need to move the stacks */
LDiff = TrDiff = BaseDiff+size;
}