summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2016-11-29 15:52:43 -0500
committerJordan Wiens <jordan@psifertex.com>2016-11-29 15:52:43 -0500
commit3b719e990e3e01242918bf66d5a1fb6032517641 (patch)
tree14faf856cf9cfbe9abf8e8f3e0de1177654f3af5 /python
parent54ca35e31102d31cf9263f3e57a326d75dacf08f (diff)
fix int Type
Diffstat (limited to 'python')
-rw-r--r--python/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/python/__init__.py b/python/__init__.py
index 64763b71..c5b7e5be 100644
--- a/python/__init__.py
+++ b/python/__init__.py
@@ -4342,8 +4342,9 @@ class Type(object):
return Type(core.BNCreateBoolType())
@classmethod
- def int(self, width, sign = True):
- return Type(core.BNCreateIntegerType(width, sign))
+ def int(self, width, sign = True, altname = ""):
+ return Type(core.BNCreateIntegerType(width, sign,
+ ctypes.create_string_buffer(altname)))
@classmethod
def float(self, width):