fix while.

This commit is contained in:
Vítor Santos Costa 2011-11-30 13:02:20 +00:00
parent 6c1cf7ea39
commit 7da303450f
1 changed files with 1 additions and 1 deletions

View File

@ -992,7 +992,7 @@ YAP_MkListFromTerms(Term *ta, Int sz)
if (sz == 0)
return TermNil;
BACKUP_H();
if (H+sz*2 > ASP-1024) {
while (H+sz*2 > ASP-1024) {
Int sl1 = Yap_InitSlot((CELL)ta PASS_REGS);
RECOVER_H();
if (!dogc( PASS_REGS1 )) {