summaryrefslogtreecommitdiff
path: root/python/basicblock.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-09-03 11:12:56 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-06 11:46:43 -0400
commit5c82c6036e04936e253d2031f73f8218bbed06aa (patch)
tree7ef969a79c88e4277d495fbae1cef5131d43f6ec /python/basicblock.py
parentd28dc76f738c1b3c6469213c2582ca7680b8fefe (diff)
Commonize _to_core_struct/_from_core_struct
Improve implementation of immutable_copy/mutable_copy
Diffstat (limited to 'python/basicblock.py')
-rw-r--r--python/basicblock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/basicblock.py b/python/basicblock.py
index c79b5d1a..e18c60b3 100644
--- a/python/basicblock.py
+++ b/python/basicblock.py
@@ -547,7 +547,7 @@ class BasicBlock:
raise ValueError("Specified color is not one of HighlightStandardColor, HighlightColor")
if isinstance(color, HighlightStandardColor):
color = _highlight.HighlightColor(color)
- core.BNSetAutoBasicBlockHighlight(self.handle, color._get_core_struct())
+ core.BNSetAutoBasicBlockHighlight(self.handle, color._to_core_struct())
def set_user_highlight(self, color:'_highlight.HighlightColor') -> None:
"""
@@ -563,7 +563,7 @@ class BasicBlock:
raise ValueError("Specified color is not one of HighlightStandardColor, HighlightColor")
if isinstance(color, HighlightStandardColor):
color = _highlight.HighlightColor(color)
- core.BNSetUserBasicBlockHighlight(self.handle, color._get_core_struct())
+ core.BNSetUserBasicBlockHighlight(self.handle, color._to_core_struct())
def get_instruction_containing_address(self, addr:int) -> Tuple[bool, int]:
start = ctypes.c_uint64()