fix bad call to gc when finding very large terms.

This commit is contained in:
Vítor Santos Costa 2010-09-30 20:09:17 +01:00
parent 48cc87e882
commit e968fe21dd
1 changed files with 1 additions and 1 deletions

View File

@ -1689,7 +1689,7 @@ Yap_absmi(int inp)
if (ASP > (CELL *)PROTECT_FROZEN_B(B))
ASP = (CELL *)PROTECT_FROZEN_B(B);
saveregs();
if (!Yap_gcl(sz, 0, YENV, PREG)) {
if (!Yap_gcl(sz, PREG->u.Osbpi.p->ArityOfPE, YENV, PREG)) {
Yap_Error(OUT_OF_STACK_ERROR,TermNil,Yap_ErrorMessage);
setregs();
FAIL();