about summary refs log tree commit diff stats
path: root/miasm2/jitter/codegen.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/jitter/codegen.py
parenteffb612334d88ce2f52c728e542bda2902bd35ed (diff)
downloadmiasm-c86e781f38e4b3688392d726bdd6fcbc2e6d377b.tar.gz
miasm-c86e781f38e4b3688392d726bdd6fcbc2e6d377b.zip
Update int(XX.arg) -> int(XX)
Diffstat (limited to 'miasm2/jitter/codegen.py')
-rw-r--r--miasm2/jitter/codegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/jitter/codegen.py b/miasm2/jitter/codegen.py
index c5f28b9f..540509bf 100644
--- a/miasm2/jitter/codegen.py
+++ b/miasm2/jitter/codegen.py
@@ -291,7 +291,7 @@ class CGen(object):
             return ("((%s)?(%s):(%s))" % (cond, src1, src2),
                     "((%s)?(%s):(%s))" % (cond, src1b, src2b))
         elif isinstance(expr, m2_expr.ExprInt):
-            offset = int(expr.arg)
+            offset = int(expr)
             self.add_label_index(dst2index, offset)
             return ("%s" % dst2index[offset],
                     hex(offset))