From c81713feb2161ff8f26e44c37f47c9256768bcbf Mon Sep 17 00:00:00 2001 From: IridiumXOR Date: Tue, 28 Apr 2020 22:55:28 +0200 Subject: Fix ExprInt() without size in PPC --- miasm/arch/ppc/sem.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miasm/arch/ppc/sem.py b/miasm/arch/ppc/sem.py index 670555d0..0157fce1 100644 --- a/miasm/arch/ppc/sem.py +++ b/miasm/arch/ppc/sem.py @@ -958,9 +958,9 @@ class ir_ppc32b(IntermediateRepresentation): instr_ir, extra_ir = mn_do_store(self, instr, *args) elif instr.name[0:4] == 'SUBF': if instr.name[0:5] == 'SUBFZ': - last_arg = ExprInt(0) + last_arg = ExprInt(0, 32) elif instr.name[0:5] == 'SUBFM': - last_arg = ExprInt(0xFFFFFFFF) + last_arg = ExprInt(0xFFFFFFFF, 32) else: last_arg = args[2] instr_ir, extra_ir = mn_do_sub(self, instr, args[0], args[1], -- cgit 1.4.1