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/jitter/codegen.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 'miasm2/jitter/codegen.py')
| -rw-r--r-- | miasm2/jitter/codegen.py | 2 |
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)) |