about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2016-10-03 14:52:32 +0200
committerGitHub <noreply@github.com>2016-10-03 14:52:32 +0200
commitcc27435675802a5967df638b05fe87bd5d9fdd64 (patch)
tree265ec433ec6a3b815301daf31ce48c6a562cbc26
parent664cd60430c535931e2a10c5fbe18235756fba0c (diff)
parent268201a0678e45e2c5bc9503e8866075f698a0cb (diff)
downloadmiasm-cc27435675802a5967df638b05fe87bd5d9fdd64.tar.gz
miasm-cc27435675802a5967df638b05fe87bd5d9fdd64.zip
Merge pull request #435 from serpilliere/fix_int
Symbexec: Fix int
-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 4c133c4c..1dc8dde1 100644
--- a/miasm2/ir/symbexec.py
+++ b/miasm2/ir/symbexec.py
@@ -295,7 +295,7 @@ class symbexec(object):
         ex = self.expr_simp(self.eval_expr(ex, {}))
         if not isinstance(ex, m2_expr.ExprInt):
             return None
-        ptr_diff = int(int32(ex))
+        ptr_diff = int(int32(ex.arg))
         out = []
         if ptr_diff < 0:
             #    [a     ]