cert.py: another fix for valueflow
This commit is contained in:
parent
3032ac4619
commit
25a3aeef86
|
@ -215,7 +215,7 @@ def int31(data, platform):
|
|||
minval = 0
|
||||
maxval = ((1 << bits) - 1)
|
||||
for value in token.astOperand1.values:
|
||||
if value.intvalue and value.intvalue < minval or value.intvalue > maxval:
|
||||
if value.intvalue and (value.intvalue < minval or value.intvalue > maxval):
|
||||
destType = ''
|
||||
if token.valueType.sign:
|
||||
destType = token.valueType.sign + ' ' + token.valueType.type
|
||||
|
|
Loading…
Reference in New Issue