summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-01-18 09:16:25 -0500
committerPeter LaFosse <peter@vector35.com>2022-01-19 10:52:42 -0500
commit5d66fab3c2b36a14f9efd119a818c48c0950394a (patch)
tree739d0b5cd2ad0f5e5c9bab02d543b48b969127c6 /python
parent1e1e2c9da6d6d39c2dc41c2aa24ee35de4cd27ac (diff)
Make enumeration's signed property BoolWithConfidence
Diffstat (limited to 'python')
-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)