mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
actually print the prototype's file+line, not the current one
This commit is contained in:
parent
65fb4b34b5
commit
51719db2cf
1 changed files with 1 additions and 1 deletions
2
parser.c
2
parser.c
|
@ -1483,7 +1483,7 @@ static bool parser_variable(parser_t *parser, ast_block *localblock)
|
||||||
if (proto) {
|
if (proto) {
|
||||||
if (!ast_compare_type((ast_expression*)proto, (ast_expression*)fval)) {
|
if (!ast_compare_type((ast_expression*)proto, (ast_expression*)fval)) {
|
||||||
parseerror(parser, "prototype declared at %s:%i had a different type",
|
parseerror(parser, "prototype declared at %s:%i had a different type",
|
||||||
ast_ctx(fval).file, ast_ctx(fval).line);
|
ast_ctx(proto).file, ast_ctx(proto).line);
|
||||||
ast_function_delete(func);
|
ast_function_delete(func);
|
||||||
ast_value_delete(fval);
|
ast_value_delete(fval);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue