Skip to content

Commit

Permalink
Fix error in INCLUSIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
Lartu committed Jun 13, 2024
1 parent a3ef4dc commit 440c961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aux/aux_compile_line.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ void compile_line(vector<string> &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;
Expand Down

0 comments on commit 440c961

Please sign in to comment.