From c51c17aa52b85803140793720e93b99b0c4ef383 Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Tue, 17 Nov 2009 00:23:34 +0000 Subject: [PATCH] make sure to get valid terms in meta_call, not references. --- C/cdmgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C/cdmgr.c b/C/cdmgr.c index de71b5120..4aa8415ee 100644 --- a/C/cdmgr.c +++ b/C/cdmgr.c @@ -4851,9 +4851,9 @@ fetch_next_static_clause(PredEntry *pe, yamop *i_code, Term th, Term tb, Term tr Terms[2] = tr; cl = (StaticClause *)Yap_FollowIndexingCode(pe, i_code, Terms, NEXTOP(PredStaticClause->CodeOfPred,Otapl), cp_ptr); UNLOCK(pe->PELock); - th = Terms[0]; - tb = Terms[1]; - tr = Terms[2]; + th = Deref(Terms[0]); + tb = Deref(Terms[1]); + tr = Deref(Terms[2]); /* don't do this!! I might have stored a choice-point and changed ASP Yap_RecoverSlots(3); */