about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2017-05-10 15:06:05 +0200
committerGitHub <noreply@github.com>2017-05-10 15:06:05 +0200
commit3260f7867827195ea7c6ec37bc3a8687ce998f6d (patch)
treeeaba06d1e886a78c51cb342d635bfd083d252e3c /example
parent0904a50a1d6735ad7ae6720b9b09c9feddfcd92f (diff)
parent32508138302e608bed354f6c6bf5e105877b4dac (diff)
downloadmiasm-3260f7867827195ea7c6ec37bc3a8687ce998f6d.tar.gz
miasm-3260f7867827195ea7c6ec37bc3a8687ce998f6d.zip
Merge pull request #550 from serpilliere/add_rot_pytrans
Add rot pytrans
Diffstat (limited to 'example')
-rw-r--r--example/ida/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ida/utils.py b/example/ida/utils.py
index 9af98cc5..a7d2418a 100644
--- a/example/ida/utils.py
+++ b/example/ida/utils.py
@@ -113,7 +113,7 @@ def expr2colorstr(regs_ids, expr):
         s += ", ".join(["%s, %s, %s" % (expr2colorstr(regs_ids, subexpr),
                                         idaapi.COLSTR(str(idx),
                                                       idaapi.SCOLOR_RPTCMT),
-                                        idaapi.COLSTR(str(idx + expr.size),
+                                        idaapi.COLSTR(str(idx + subexpr.size),
                                                       idaapi.SCOLOR_RPTCMT))
                         for idx, subexpr in expr.iter_args()])
         s += "}"