about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--miasm2/ir/symbexec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/ir/symbexec.py b/miasm2/ir/symbexec.py
index 5bdcac2f..26eff2f6 100644
--- a/miasm2/ir/symbexec.py
+++ b/miasm2/ir/symbexec.py
@@ -153,7 +153,7 @@ class symbexec(object):
                 if out:
                     missing_slice = self.rest_slice(out, 0, a.size)
                     for sa, sb in missing_slice:
-                        ptr = self.expr_simp(a_val + ExprInt32(sa / 8))
+                        ptr = self.expr_simp(a_val + ExprInt_from(a_val, sa / 8))
                         mm = ExprMem(ptr, size=sb - sa)
                         mm.is_term = True
                         mm.is_simp = True