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
|
minval = 0
|
||||||
maxval = ((1 << bits) - 1)
|
maxval = ((1 << bits) - 1)
|
||||||
for value in token.astOperand1.values:
|
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 = ''
|
destType = ''
|
||||||
if token.valueType.sign:
|
if token.valueType.sign:
|
||||||
destType = token.valueType.sign + ' ' + token.valueType.type
|
destType = token.valueType.sign + ' ' + token.valueType.type
|
||||||
|
|
Loading…
Reference in New Issue