Skip to content

Commit c08cf3f

Browse files
committed
[Python API] Fix exception in LanguageRepresentationFunction.get_block_lines
1 parent 5da9c9b commit c08cf3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/languagerepresentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def get_block_lines(
618618
for i in range(0, count.value):
619619
addr = lines[i].addr
620620
if lines[i].instrIndex != 0xffffffffffffffff:
621-
il_instr = instr.function[lines[i].instrIndex] # type: ignore
621+
il_instr = block.function[lines[i].instrIndex]
622622
else:
623623
il_instr = None
624624
color = highlight.HighlightColor._from_core_struct(lines[i].highlight)

0 commit comments

Comments
 (0)