cleanup patch

This commit is contained in:
Vitor Santos Costa
2011-07-14 09:40:15 +01:00
parent 22d8e33a5f
commit de60807724
2 changed files with 3 additions and 3 deletions

View File

@@ -1453,7 +1453,7 @@ static Int has_cut(yamop *pc, PredEntry *ap)
{
if (ap->PredFlags & LogUpdatePredFlag) {
LogUpdClause *lcl = ClauseCodeToLogUpdClause(pc);
return lcl->ClFlags & HasCutMask ? 1 : 0;
return ( (lcl->ClFlags & HasCutMask) != 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 ? 1 : 0;
return ( (scl->ClFlags & HasCutMask) != 0);
}
}