From 440c961ac3c36f0a80cbe651c98b4cd43dbeaf30 Mon Sep 17 00:00:00 2001 From: Lartu <11744462+Lartu@users.noreply.github.com> Date: Thu, 13 Jun 2024 04:09:38 -0300 Subject: [PATCH] Fix error in INCLUSIVE --- src/aux/aux_compile_line.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;