current_pred again

This commit is contained in:
Vítor Santos Costa 2016-01-31 23:11:49 +00:00
parent f031e78def
commit 9b38290b8c

View File

@ -863,12 +863,11 @@ static Int cont_current_predicate(USES_REGS1) {
if (task != TermUser) { if (task != TermUser) {
ModEntry *m = Yap_GetModuleEntry(TermProlog); ModEntry *m = Yap_GetModuleEntry(TermProlog);
pp = firstModulePred(m->PredForME, task); pp = firstModulePred(m->PredForME, task);
if (!pp) if (!pp) {
cut_fail(); cut_fail();
}
} }
} else { }
cut_fail();
}
} }
npp = firstModulePred(pp, task); npp = firstModulePred(pp, task);