summaryrefslogtreecommitdiffstatshomepage
path: root/py/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'py/compile.c')
-rw-r--r--py/compile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/py/compile.c b/py/compile.c
index ef303c1f46..a01f5f4c58 100644
--- a/py/compile.c
+++ b/py/compile.c
@@ -1378,15 +1378,15 @@ void compile_for_stmt_optimised_range(compiler_t *comp, py_parse_node_t pn_var,
EMIT(jump, continue_label);
EMIT(label_assign, top_label);
+ // compile body
+ compile_node(comp, pn_body);
+
// compile: var += step
c_assign(comp, pn_var, ASSIGN_AUG_LOAD);
compile_node(comp, pn_step);
EMIT(binary_op, RT_BINARY_OP_INPLACE_ADD);
c_assign(comp, pn_var, ASSIGN_AUG_STORE);
- // compile body
- compile_node(comp, pn_body);
-
EMIT(label_assign, continue_label);
// compile: if var < end: goto top