missed change

missed explicit value
This commit is contained in:
marauder2k7 2024-04-27 23:40:35 +01:00
parent 8cf5fac497
commit baa977eed8
2 changed files with 2 additions and 2 deletions

View file

@ -650,7 +650,7 @@ yyreport_syntax_error (const yypcontext_t *ctx)
output += "\n";
for (int i = 0; i < lines.size(); i++)
{
int line = 10 - i;
int line = lines.size() - i;
output += String::ToString("%5d | ", loc->first_line - (line-1)) + lines[i] + "\n";
}
output += String::ToString("%5s | %*s", "", loc->first_column, "^");

View file

@ -3357,7 +3357,7 @@ yyreport_syntax_error (const yypcontext_t *ctx)
output += "\n";
for (int i = 0; i < lines.size(); i++)
{
int line = 10 - i;
int line = lines.size() - i;
output += String::ToString("%5d | ", loc->first_line - (line-1)) + lines[i] + "\n";
}
output += String::ToString("%5s | %*s", "", loc->first_column, "^");