about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2020-04-29 09:45:31 +0200
committerGitHub <noreply@github.com>2020-04-29 09:45:31 +0200
commita9c0b506f0116342972996689dd5a043bddc2ade (patch)
tree08ce07ca02d6de9cd4a2ae7801e06bfada00fa3b
parente74675fbf0ddb91136245b1a7e33c13b381ddb19 (diff)
parentc81713feb2161ff8f26e44c37f47c9256768bcbf (diff)
downloadmiasm-a9c0b506f0116342972996689dd5a043bddc2ade.tar.gz
miasm-a9c0b506f0116342972996689dd5a043bddc2ade.zip
Merge pull request #1205 from IridiumXOR/ppc_bug_exprint
Fix ExprInt() without size in PPC
Diffstat (limited to '')
-rw-r--r--miasm/arch/ppc/sem.py4
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],