diff options
| author | IridiumXOR <oliveriandrea@gmail.com> | 2020-04-28 22:55:28 +0200 |
|---|---|---|
| committer | IridiumXOR <oliveriandrea@gmail.com> | 2020-04-28 22:55:28 +0200 |
| commit | c81713feb2161ff8f26e44c37f47c9256768bcbf (patch) | |
| tree | f962f058df5f9743e002610e854d0b0775ce6cc3 | |
| parent | f6e487a73b36228bb07e5476b6050c96ff717e6b (diff) | |
| download | miasm-c81713feb2161ff8f26e44c37f47c9256768bcbf.tar.gz miasm-c81713feb2161ff8f26e44c37f47c9256768bcbf.zip | |
Fix ExprInt() without size in PPC
| -rw-r--r-- | miasm/arch/ppc/sem.py | 4 |
1 files 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], |