don't forget that gc may not give you all the space you want the first
time: stdpreds.c git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@660 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
parent
4e80f5feeb
commit
6a4f06cde6
@ -1264,10 +1264,17 @@ p_univ(void)
|
||||
*p++ = Deref(*q++);
|
||||
}
|
||||
twork = ArrayToList(CellPtr(TR), argno - 1);
|
||||
while (IsIntTerm(twork)) {
|
||||
if (!gc(2, ENV, P)) {
|
||||
Error(OUT_OF_STACK_ERROR, TermNil, ErrorMessage);
|
||||
return(FALSE);
|
||||
}
|
||||
twork = ArrayToList(CellPtr(TR), argno - 1);
|
||||
}
|
||||
} else
|
||||
#endif
|
||||
{
|
||||
if (H+arity*2 > ASP-1024) {
|
||||
while (H+arity*2 > ASP-1024) {
|
||||
if (!gc(2, ENV, P)) {
|
||||
Error(OUT_OF_STACK_ERROR, TermNil, ErrorMessage);
|
||||
return(FALSE);
|
||||
|
Reference in New Issue
Block a user