Fix typo in IsBool and add coverage test. Report and fix by Code Violet.
This commit is contained in:
@@ -90,7 +90,7 @@ class foldconst(object):
|
||||
|
||||
if nt == 'FNCALL':
|
||||
sym = self.symtab[0][node['name']]
|
||||
if sym['Typ'] == 'integer' and 'min' in sym and 'max' in sym \
|
||||
if sym['Type'] == 'integer' and 'min' in sym and 'max' in sym \
|
||||
and sym['min'] == 0 and sym['max'] == 1:
|
||||
return True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user