summaryrefslogtreecommitdiff
path: root/python/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/types.py')
-rw-r--r--python/types.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/types.py b/python/types.py
index 1faec34d..8ca8e260 100644
--- a/python/types.py
+++ b/python/types.py
@@ -2048,7 +2048,9 @@ class EnumerationType(IntegerType):
assert type_builder_handle is not None, "core.BNCreateTypeBuilderFromType returned None"
enumeration_handle = core.BNGetTypeEnumeration(self._handle)
assert enumeration_handle is not None, "core.BNGetTypeStructure returned None"
- enumeration_builder_handle = core.BNCreateEnumerationTypeBuilder(self.platform.arch.handle, enumeration_handle, self.width, self.signed.value)
+
+ _sign = BoolWithConfidence.get_core_struct(self.signed)
+ enumeration_builder_handle = core.BNCreateEnumerationTypeBuilder(self.platform.arch.handle, enumeration_handle, self.width, _sign)
assert enumeration_builder_handle is not None, "core.BNCreateEnumerationTypeBuilder returned None"
return EnumerationBuilder(type_builder_handle, enumeration_builder_handle, self.platform, self.confidence)