summaryrefslogtreecommitdiff
path: root/python/types.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2018-01-11 20:49:32 -0500
committerPeter LaFosse <peter@vector35.com>2018-01-11 20:49:32 -0500
commit4866de9b9f0ef32dfa568aa38faafdfd4def4638 (patch)
tree1e64a757e33457d8a389373c3130031cf77f3a6a /python/types.py
parent1df49afa5522d73d509d20db9588294fe259085f (diff)
fixes binaryninja-api #784 improper call to BNCreateEnumerationType
Diffstat (limited to 'python/types.py')
-rw-r--r--python/types.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/types.py b/python/types.py
index 2557db2c..49f1fdeb 100644
--- a/python/types.py
+++ b/python/types.py
@@ -515,10 +515,10 @@ class Type(object):
return Type(core.BNCreateNamedTypeReferenceFromType(view.handle, name))
@classmethod
- def enumeration_type(self, arch, e, width=None):
+ def enumeration_type(self, arch, e, width=None, sign=False):
if width is None:
width = arch.default_int_size
- return Type(core.BNCreateEnumerationType(e.handle, width))
+ return Type(core.BNCreateEnumerationType(arch.handle, e.handle, width, sign))
@classmethod
def pointer(self, arch, t, const=None, volatile=None, ref_type=None):