diff options
| author | Peter LaFosse <peter@vector35.com> | 2018-01-11 20:49:32 -0500 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2018-03-23 17:10:06 -0400 |
| commit | 86da0eb0216f0d778cce9885ea16588c0a2b0728 (patch) | |
| tree | 09865db23ad315a1656576260da86128a9b987b3 /python | |
| parent | 3190696d1c0d7d94420872202a82a43e03dbcb80 (diff) | |
fixes binaryninja-api #784 improper call to BNCreateEnumerationType
Diffstat (limited to 'python')
| -rw-r--r-- | python/types.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/types.py b/python/types.py index d44cc736..0c47bae0 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): |
