summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-03-27 15:39:37 -0400
committerGlenn Smith <glenn@vector35.com>2025-03-27 15:40:05 -0400
commit6679864242329639194911318737108625989530 (patch)
tree3611cfd814962b9c3c0c568e09212543a3dd6aab /python
parent180a554d7efd100ff9138d097ba11018fcbf0dea (diff)
Python: Fix a couple typoes in the IL builders
Diffstat (limited to 'python')
-rw-r--r--python/lowlevelil.py4
-rw-r--r--python/mediumlevelil.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index f37e53a2..5ea25d29 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -4027,7 +4027,7 @@ class LowLevelILFunction:
return dest.extern_pointer(expr.size, expr.constant, expr.offset, loc)
if expr.operation == LowLevelILOperation.LLIL_FLOAT_CONST:
expr: LowLevelILFloatConst
- return dest.float_const_raw(expr.size, expr.constant, loc)
+ return dest.float_const_raw(expr.size, expr.instr.operands[0], loc)
if expr.operation in [
LowLevelILOperation.LLIL_POP,
LowLevelILOperation.LLIL_NORET,
@@ -4036,7 +4036,7 @@ class LowLevelILFunction:
LowLevelILOperation.LLIL_UNDEF,
LowLevelILOperation.LLIL_UNIMPL
]:
- expr:Y
+ expr: LowLevelILInstruction
return dest.expr(expr.operation, size=expr.size, flags=expr.flags, source_location=loc)
if expr.operation in [
LowLevelILOperation.LLIL_PUSH,
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index 6bcf9807..4dbe43e3 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -5210,7 +5210,7 @@ class MediumLevelILFunction:
return ExpressionIndex(core.BNMediumLevelILGoto(self.handle, label.handle))
def if_expr(
- self, operand: ExpressionIndex, t: MediumLevelILLabel, f: MediumLevelILLabel, label: MediumLevelILLabel,
+ self, operand: ExpressionIndex, t: MediumLevelILLabel, f: MediumLevelILLabel,
loc: Optional['ILSourceLocation'] = None
) -> ExpressionIndex:
"""