better flag handling

This commit is contained in:
hugogogo
2026-05-06 16:50:05 +02:00
parent 8a479c3c3b
commit 93647b56b5
5 changed files with 51 additions and 48 deletions

View File

@@ -131,7 +131,7 @@ static int get_exponent(s_token *tokens, int i, int *token_count)
}
else
{
stop_errors("at exponent place, after a '*' we should have a 'var', but instead got : '%c' (token number %i)", tokens[i].value_char, i);
stop_errors("at exponent place, after a '*' we should have a 'var', but instead got : '%s' (token number %i)", token_type_to_str(tokens[i].type), i);
}
}
else
@@ -160,7 +160,7 @@ static int get_exponent(s_token *tokens, int i, int *token_count)
}
else
{
stop_errors("at exponent place, we should have an int, but instead got : '%c' (token number %i)", tokens[i].value_char, i);
stop_errors("at exponent place, we should have an int, but instead got : '%s' (token number %i)", token_type_to_str(tokens[i].type), i);
}
return tokens[i].value_int;