about summary refs log tree commit diff stats
path: root/example/ida/utils.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2017-05-08 21:56:38 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2017-05-09 13:58:23 +0200
commit32508138302e608bed354f6c6bf5e105877b4dac (patch)
tree1c06ab279571b6075ba8f2c0bab284545d6ac46d /example/ida/utils.py
parentd37346fda36fff2732a68bcba54b9dd32f0eef75 (diff)
downloadmiasm-32508138302e608bed354f6c6bf5e105877b4dac.tar.gz
miasm-32508138302e608bed354f6c6bf5e105877b4dac.zip
Example: fix tipo
Diffstat (limited to 'example/ida/utils.py')
-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 += "}"