misra.py: assume that '0' and '1' have essentially boolean types

This commit is contained in:
Daniel Marjamäki 2018-03-14 14:54:05 +01:00
parent ed3cd2929e
commit c74b0934e9
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ def hasSideEffectsRecursive(expr):
def isBoolExpression(expr):
return expr and expr.str in {'!', '==', '!=', '<', '<=', '>', '>=', '&&', '||'}
return expr and expr.str in ['!', '==', '!=', '<', '<=', '>', '>=', '&&', '||', '0', '1']
def isConstantExpression(expr):