about summary refs log tree commit diff stats
path: root/miasm2/ir/ir.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2016-09-15 17:46:32 +0200
committerAjax <commial@gmail.com>2016-09-16 08:16:17 +0200
commitc86e781f38e4b3688392d726bdd6fcbc2e6d377b (patch)
tree1e2283aa841316cfabb21c9c2d4ac6e116f97dab /miasm2/ir/ir.py
parenteffb612334d88ce2f52c728e542bda2902bd35ed (diff)
downloadmiasm-c86e781f38e4b3688392d726bdd6fcbc2e6d377b.tar.gz
miasm-c86e781f38e4b3688392d726bdd6fcbc2e6d377b.zip
Update int(XX.arg) -> int(XX)
Diffstat (limited to 'miasm2/ir/ir.py')
-rw-r--r--miasm2/ir/ir.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py
index cd512e34..ca5100e2 100644
--- a/miasm2/ir/ir.py
+++ b/miasm2/ir/ir.py
@@ -326,7 +326,7 @@ class ir(object):
                 isinstance(ad.name, asm_label)):
             ad = ad.name
         if isinstance(ad, m2_expr.ExprInt):
-            ad = int(ad.arg)
+            ad = int(ad)
         if type(ad) in [int, long]:
             ad = self.symbol_pool.getby_offset_create(ad)
         elif isinstance(ad, asm_label):
@@ -514,7 +514,7 @@ class ir(object):
             for d in dst:
                 if isinstance(d, m2_expr.ExprInt):
                     d = m2_expr.ExprId(
-                        self.symbol_pool.getby_offset_create(int(d.arg)))
+                        self.symbol_pool.getby_offset_create(int(d)))
                 if expr_is_label(d):
                     self._graph.add_edge(lbl, d.name)