From: Wolfgang (Blub) Bumiller Date: Tue, 14 Aug 2012 12:19:44 +0000 (+0200) Subject: actually print the prototype's file+line, not the current one X-Git-Tag: 0.1-rc1~312 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=51719db2cf8a66a5644a406b2188f8a4030c99ca;p=xonotic%2Fgmqcc.git actually print the prototype's file+line, not the current one --- diff --git a/parser.c b/parser.c index 05c4313..bfd036f 100644 --- a/parser.c +++ b/parser.c @@ -1483,7 +1483,7 @@ static bool parser_variable(parser_t *parser, ast_block *localblock) if (proto) { if (!ast_compare_type((ast_expression*)proto, (ast_expression*)fval)) { 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_value_delete(fval); return false;