From 5c82c6036e04936e253d2031f73f8218bbed06aa Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 3 Sep 2021 11:12:56 -0400 Subject: Commonize _to_core_struct/_from_core_struct Improve implementation of immutable_copy/mutable_copy --- python/basicblock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/basicblock.py') 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() -- cgit v1.3.1