about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCamille Mougey <camille.mougey@cea.fr>2014-09-05 13:28:40 +0200
committerCamille Mougey <camille.mougey@cea.fr>2014-09-05 13:28:40 +0200
commit09cde7eaf747dfdaf29112d2bab25479dcf152a3 (patch)
treeec6c7be7019e5158dc383bb5d91e60b6d4b14b90
parent888bf4c53530e896439192946acbb9bae6149171 (diff)
downloadmiasm-09cde7eaf747dfdaf29112d2bab25479dcf152a3.tar.gz
miasm-09cde7eaf747dfdaf29112d2bab25479dcf152a3.zip
Symbexec: Should use b - a instead of ExprOp('-', b, a)
Diffstat (limited to '')
-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 3954a543..76bb65b6 100644
--- a/miasm2/ir/symbexec.py
+++ b/miasm2/ir/symbexec.py
@@ -272,7 +272,7 @@ class symbexec:
         return o
 
     def substract_mems(self, a, b):
-        ex = ExprOp('-', b.arg, a.arg)
+        ex = b.arg - a.arg
         ex = self.expr_simp(self.eval_expr(ex, {}))
         if not isinstance(ex, ExprInt):
             return None