cppcheckdata.py: update ValueFlow handling

This commit is contained in:
Daniel Marjamäki 2015-06-20 21:58:23 +02:00
parent 7481fbb028
commit 0bdd355fac
1 changed files with 5 additions and 1 deletions

View File

@ -196,10 +196,14 @@ class ValueFlow:
class Value: class Value:
intvalue = None intvalue = None
tokvalue = None
condition = None condition = None
def __init__(self, element): def __init__(self, element):
self.intvalue = int(element.get('intvalue')) self.intvalue = element.get('intvalue')
if self.intvalue:
self.intvalue = int(self.intvalue)
self.tokvalue = element.get('tokvalue')
self.condition = element.get('condition-line') self.condition = element.get('condition-line')
if self.condition: if self.condition:
self.condition = int(self.condition) self.condition = int(self.condition)