about summary refs log tree commit diff stats
path: root/miasm2/core/cpu.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/core/cpu.py
parenteffb612334d88ce2f52c728e542bda2902bd35ed (diff)
downloadmiasm-c86e781f38e4b3688392d726bdd6fcbc2e6d377b.tar.gz
miasm-c86e781f38e4b3688392d726bdd6fcbc2e6d377b.zip
Update int(XX.arg) -> int(XX)
Diffstat (limited to 'miasm2/core/cpu.py')
-rw-r--r--miasm2/core/cpu.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/core/cpu.py b/miasm2/core/cpu.py
index 92bde778..81c18f1f 100644
--- a/miasm2/core/cpu.py
+++ b/miasm2/core/cpu.py
@@ -1433,7 +1433,7 @@ class cls_mn(object):
         args = []
         for d in dst:
             if isinstance(d, m2_expr.ExprInt):
-                l = symbol_pool.getby_offset_create(int(d.arg))
+                l = symbol_pool.getby_offset_create(int(d))
 
                 a = m2_expr.ExprId(l.name, d.size)
             else:
@@ -1457,7 +1457,7 @@ class imm_noarg(object):
     def expr2int(self, e):
         if not isinstance(e, m2_expr.ExprInt):
             return None
-        v = int(e.arg)
+        v = int(e)
         if v & ~self.intmask != 0:
             return None
         return v
@@ -1542,7 +1542,7 @@ class int32_noarg(imm_noarg):
     def encode(self):
         if not isinstance(self.expr, m2_expr.ExprInt):
             return False
-        v = int(self.expr.arg)
+        v = int(self.expr)
         if sign_ext(v & self.lmask, self.l, self.intsize) != v:
             return False
         v = self.encodeval(v & self.lmask)