diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2016-10-03 13:33:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-03 13:33:56 +0200 |
| commit | 664cd60430c535931e2a10c5fbe18235756fba0c (patch) | |
| tree | a90abf03c7495779b12549f0a6d7a443b5b96def /miasm2/ir/ir.py | |
| parent | 9bc007e7350851d1d97e426f4d1ae369facdb721 (diff) | |
| parent | c86e781f38e4b3688392d726bdd6fcbc2e6d377b (diff) | |
| download | miasm-664cd60430c535931e2a10c5fbe18235756fba0c.tar.gz miasm-664cd60430c535931e2a10c5fbe18235756fba0c.zip | |
Merge pull request #430 from commial/feature/int_ExprInt
Feature/int expr int
Diffstat (limited to '')
| -rw-r--r-- | miasm2/ir/ir.py | 4 |
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) |