From 05ac1dc920c96299fcc3f0fd487c4f87e65039ad Mon Sep 17 00:00:00 2001 From: Vitor Santos Costa Date: Thu, 24 Apr 2014 12:54:08 +0100 Subject: [PATCH] small fixes: - fix consult as reconsult - declaring P twice as thread_local confused yap - missing UNLOCK. --- C/cdmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C/cdmgr.c b/C/cdmgr.c index 7111f98fb..bc7e93059 100644 --- a/C/cdmgr.c +++ b/C/cdmgr.c @@ -2020,7 +2020,7 @@ not_was_reconsulted(PredEntry *p, Term t, int mode) } if (fp != LOCAL_ConsultBase) { return FALSE; - } else if (!mode) { // consulting again a predicate in the original file. + } else if (mode) { // consulting again a predicate in the original file. if ((p->cs.p_code.NOfClauses && p->src.OwnerFile == Yap_ConsultingFile( PASS_REGS1 ) && p->src.OwnerFile != AtomNil &&