fix while.
This commit is contained in:
parent
6c1cf7ea39
commit
7da303450f
@ -992,7 +992,7 @@ YAP_MkListFromTerms(Term *ta, Int sz)
|
|||||||
if (sz == 0)
|
if (sz == 0)
|
||||||
return TermNil;
|
return TermNil;
|
||||||
BACKUP_H();
|
BACKUP_H();
|
||||||
if (H+sz*2 > ASP-1024) {
|
while (H+sz*2 > ASP-1024) {
|
||||||
Int sl1 = Yap_InitSlot((CELL)ta PASS_REGS);
|
Int sl1 = Yap_InitSlot((CELL)ta PASS_REGS);
|
||||||
RECOVER_H();
|
RECOVER_H();
|
||||||
if (!dogc( PASS_REGS1 )) {
|
if (!dogc( PASS_REGS1 )) {
|
||||||
|
Reference in New Issue
Block a user