diff options
| author | Rusty Wagner <rusty@vector35.com> | 2017-07-14 01:05:18 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2017-07-14 01:05:18 -0400 |
| commit | 35c65d909d1ec36a4a1bad7404c9f986e259f662 (patch) | |
| tree | 213cc0371f20f8d9189387d28694d04d7153370a /python/function.py | |
| parent | 3d403cfae9d5a366f112c8a5936a371a01cfd230 (diff) | |
Adding API to get type of MLIL expression
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py index 3cd5396f..aa0d05eb 100644 --- a/python/function.py +++ b/python/function.py @@ -185,7 +185,7 @@ class Variable(object): if var_type is None: var_type_conf = core.BNGetVariableType(func.handle, var) if var_type_conf.type: - var_type = types.Type(var_type, confidence = var_type_conf.confidence) + var_type = types.Type(var_type_conf.type, confidence = var_type_conf.confidence) else: var_type = None @@ -1401,7 +1401,7 @@ class InstructionTextToken(object): """ def __init__(self, token_type, text, value = 0, size = 0, operand = 0xffffffff, - context = InstructionTextTokenContext.NoTokenContext, address = 0, confidence = types.Type.max_confidence): + context = InstructionTextTokenContext.NoTokenContext, address = 0, confidence = types.max_confidence): self.type = InstructionTextTokenType(token_type) self.text = text self.value = value |
