diff --git a/src/aux/aux_compile_line.cpp b/src/aux/aux_compile_line.cpp index 69a9bda..dac18ae 100644 --- a/src/aux/aux_compile_line.cpp +++ b/src/aux/aux_compile_line.cpp @@ -452,7 +452,7 @@ void compile_line(vector &tokens, compiler_state &state) string var = get_c_variable(state, tokens[1]); string from = get_c_expression(state, tokens[3]); string to = get_c_expression(state, tokens[5]); - string step = get_c_expression(state, tokens[7]); + string step = get_c_expression(state, tokens[8]); string init = var + " = " + from; string condition = step + " >= 0 ? " + var + " <= " + to + " : " + var + " >= " + to;