cert.py: another fix for valueflow

This commit is contained in:
Daniel Marjamäki 2018-10-29 01:39:52 +01:00
parent 3032ac4619
commit 25a3aeef86
1 changed files with 1 additions and 1 deletions

View File

@ -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