about summary refs log tree commit diff stats
path: root/miasm2/ir
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2016-12-23 13:45:25 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2016-12-23 15:11:48 +0100
commit494ba6e2b3711b519d7f99f2867e293b0f1650eb (patch)
tree7eb36c35e792baa5806a68daeb16d4856ff9323b /miasm2/ir
parent103c1ea91b7cbeef86041974ac493f341513efd8 (diff)
downloadmiasm-494ba6e2b3711b519d7f99f2867e293b0f1650eb.tar.gz
miasm-494ba6e2b3711b519d7f99f2867e293b0f1650eb.zip
Expr: Remove exprint_from
Diffstat (limited to '')
-rw-r--r--miasm2/ir/ir.py5
-rw-r--r--miasm2/ir/symbexec.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py
index e513c179..582faee6 100644
--- a/miasm2/ir/ir.py
+++ b/miasm2/ir/ir.py
@@ -359,8 +359,9 @@ class ir(object):
 
     def gen_pc_update(self, c, l):
         c.irs.append(AssignBlock([m2_expr.ExprAff(self.pc,
-                                                  m2_expr.ExprInt_from(self.pc,
-                                                                       l.offset))]))
+                                                  m2_expr.ExprInt(l.offset,
+                                                                  self.pc.size)
+                                                  )]))
         c.lines.append(l)
 
     def add_bloc(self, bloc, gen_pc_updt=False):
diff --git a/miasm2/ir/symbexec.py b/miasm2/ir/symbexec.py
index 2bb99e5d..fd8413fc 100644
--- a/miasm2/ir/symbexec.py
+++ b/miasm2/ir/symbexec.py
@@ -204,7 +204,7 @@ class symbexec(object):
             return expr
         elif isinstance(expr, m2_expr.ExprId):
             if isinstance(expr.name, asmbloc.asm_label) and expr.name.offset is not None:
-                ret = m2_expr.ExprInt_from(expr, expr.name.offset)
+                ret = m2_expr.ExprInt(expr.name.offset, expr.size)
             else:
                 ret = state.get(expr, expr)
         elif isinstance(expr, m2_expr.ExprMem):