summaryrefslogtreecommitdiff
path: root/python/variable.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-07-07 08:26:29 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-05 10:09:09 -0400
commit764063b2b44dbeba5f2f318c971e4f4acfb48427 (patch)
treee014fe6a859b97a653cef80dc9db66a06c706c37 /python/variable.py
parentd376db916f5fc83f9e654edf23364d200839ac50 (diff)
Refactor Python Types
Remove _mutable types
Diffstat (limited to 'python/variable.py')
-rw-r--r--python/variable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/variable.py b/python/variable.py
index fc2eb54a..1ed38c2d 100644
--- a/python/variable.py
+++ b/python/variable.py
@@ -724,7 +724,7 @@ class Variable:
def type(self) -> 'binaryninja.types.Type':
var_type_conf = core.BNGetVariableType(self._function.handle, self._var.to_BNVariable())
assert var_type_conf.type is not None, "core.BNGetVariableType returned None"
- _type = binaryninja.types.Type(var_type_conf.type, self._function.platform, var_type_conf.confidence)
+ _type = binaryninja.types.Type.create(core.BNNewTypeReference(var_type_conf.type), self._function.platform, var_type_conf.confidence)
return _type
@type.setter