fix bad functor in heap routines.

This commit is contained in:
Costa Vitor 2009-09-12 16:44:28 -05:00
parent 32122f4171
commit c0fd49df34

View File

@ -1952,7 +1952,7 @@ p_nb_heap_add_to_heap(void)
hmsize += extra_size; hmsize += extra_size;
if (!qd) if (!qd)
return FALSE; return FALSE;
qd[-1] = (CELL)Yap_MkFunctor(AtomHeap,2*hmsize+HEAP_START)+1; qd[-1] = (CELL)Yap_MkFunctor(AtomHeap,2*hmsize+HEAP_START);
top = qd+(HEAP_START+2*(hmsize-extra_size)); top = qd+(HEAP_START+2*(hmsize-extra_size));
while (extra_size) { while (extra_size) {
RESET_VARIABLE(top); RESET_VARIABLE(top);