summaryrefslogtreecommitdiff
path: root/python/mediumlevelil.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-06-19 16:23:09 -0400
committerGlenn Smith <glenn@vector35.com>2025-07-01 12:52:07 -0400
commitdc9ddca46f19e31384e4e30863570a8552e4bd8c (patch)
treee637d0152e5e0d84d142b04b094de702d06de1fe /python/mediumlevelil.py
parent1e23ec1a78885fc952e27bf41cee1d5c59b7dbca (diff)
Python: Report get_instruction_start returns InstructionIndex
Diffstat (limited to 'python/mediumlevelil.py')
-rw-r--r--python/mediumlevelil.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index fb397213..6d4ae036 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -3490,7 +3490,7 @@ class MediumLevelILFunction:
def hlil(self) -> Optional[highlevelil.HighLevelILFunction]:
return self.high_level_il
- def get_instruction_start(self, addr: int, arch: Optional['architecture.Architecture'] = None) -> Optional[int]:
+ def get_instruction_start(self, addr: int, arch: Optional['architecture.Architecture'] = None) -> Optional[InstructionIndex]:
_arch = arch
if _arch is None:
if self._arch is None:
@@ -3499,7 +3499,7 @@ class MediumLevelILFunction:
result = core.BNMediumLevelILGetInstructionStart(self.handle, _arch.handle, addr)
if result >= core.BNGetMediumLevelILInstructionCount(self.handle):
return None
- return result
+ return InstructionIndex(result)
def expr(
self, operation: MediumLevelILOperation, a: int = 0, b: int = 0, c: int = 0, d: int = 0, e: int = 0,