fix cut support for or-parallelism
This commit is contained in:
@@ -1453,7 +1453,7 @@ static Int has_cut(yamop *pc, PredEntry *ap)
|
||||
{
|
||||
if (ap->PredFlags & LogUpdatePredFlag) {
|
||||
LogUpdClause *lcl = ClauseCodeToLogUpdClause(pc);
|
||||
return lcl->ClFlags & HasCutMask;
|
||||
return lcl->ClFlags & HasCutMask ? 1 : 0;
|
||||
} else if (ap->PredFlags & MegaClausePredFlag) {
|
||||
/* must be a fact */
|
||||
return FALSE;
|
||||
@@ -1461,7 +1461,7 @@ static Int has_cut(yamop *pc, PredEntry *ap)
|
||||
StaticClause *scl;
|
||||
|
||||
scl = ClauseCodeToStaticClause(pc);
|
||||
return scl->ClFlags & HasCutMask;
|
||||
return scl->ClFlags & HasCutMask ? 1 : 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user