about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--example/ida/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ida/utils.py b/example/ida/utils.py
index fa1638ab..9af98cc5 100644
--- a/example/ida/utils.py
+++ b/example/ida/utils.py
@@ -111,11 +111,11 @@ def expr2colorstr(regs_ids, expr):
     elif isinstance(expr, m2_expr.ExprCompose):
         s = "{"
         s += ", ".join(["%s, %s, %s" % (expr2colorstr(regs_ids, subexpr),
-                                        idaapi.COLSTR(str(start),
+                                        idaapi.COLSTR(str(idx),
                                                       idaapi.SCOLOR_RPTCMT),
-                                        idaapi.COLSTR(str(stop),
+                                        idaapi.COLSTR(str(idx + expr.size),
                                                       idaapi.SCOLOR_RPTCMT))
-                        for subexpr, start, stop in expr.args])
+                        for idx, subexpr in expr.iter_args()])
         s += "}"
     else:
         s = str(expr)