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) {
ModEntry *m = Yap_GetModuleEntry(TermProlog);
pp = firstModulePred(m->PredForME, task);
if (!pp)
cut_fail();
if (!pp) {
cut_fail();
}
}
} else {
cut_fail();
}
}
}
npp = firstModulePred(pp, task);