Skip to content

Commit 6679864

Browse files
committed
Python: Fix a couple typoes in the IL builders
1 parent 180a554 commit 6679864

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/lowlevelil.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4027,7 +4027,7 @@ def copy_expr_to(
40274027
return dest.extern_pointer(expr.size, expr.constant, expr.offset, loc)
40284028
if expr.operation == LowLevelILOperation.LLIL_FLOAT_CONST:
40294029
expr: LowLevelILFloatConst
4030-
return dest.float_const_raw(expr.size, expr.constant, loc)
4030+
return dest.float_const_raw(expr.size, expr.instr.operands[0], loc)
40314031
if expr.operation in [
40324032
LowLevelILOperation.LLIL_POP,
40334033
LowLevelILOperation.LLIL_NORET,
@@ -4036,7 +4036,7 @@ def copy_expr_to(
40364036
LowLevelILOperation.LLIL_UNDEF,
40374037
LowLevelILOperation.LLIL_UNIMPL
40384038
]:
4039-
expr:Y
4039+
expr: LowLevelILInstruction
40404040
return dest.expr(expr.operation, size=expr.size, flags=expr.flags, source_location=loc)
40414041
if expr.operation in [
40424042
LowLevelILOperation.LLIL_PUSH,

python/mediumlevelil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5210,7 +5210,7 @@ def goto(
52105210
return ExpressionIndex(core.BNMediumLevelILGoto(self.handle, label.handle))
52115211

52125212
def if_expr(
5213-
self, operand: ExpressionIndex, t: MediumLevelILLabel, f: MediumLevelILLabel, label: MediumLevelILLabel,
5213+
self, operand: ExpressionIndex, t: MediumLevelILLabel, f: MediumLevelILLabel,
52145214
loc: Optional['ILSourceLocation'] = None
52155215
) -> ExpressionIndex:
52165216
"""

0 commit comments

Comments
 (0)