summaryrefslogtreecommitdiff
path: root/python/mediumlevelil.py
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-06-15 16:34:31 -0400
committerGlenn Smith <glenn@vector35.com>2025-07-01 02:17:05 -0400
commit4699046403729894016891936974371249694232 (patch)
treef74969fd4542025f97766226b69bc4f30db71de8 /python/mediumlevelil.py
parent9134714721422719282628558442981933300295 (diff)
Python: Couple minor typing tweaks
Diffstat (limited to 'python/mediumlevelil.py')
-rw-r--r--python/mediumlevelil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index d4aef4ce..b4d6663e 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -3621,7 +3621,7 @@ class MediumLevelILFunction:
:return: Index of added instruction in the current function
:rtype: int
"""
- return core.BNMediumLevelILAddInstruction(self.handle, expr)
+ return InstructionIndex(core.BNMediumLevelILAddInstruction(self.handle, expr))
def nop(self, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
"""