X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=parser.cpp;h=fec3a22a5300537e343eb1f3d580665249038700;hp=631adf645654d4165525cc95f4b986f2b5a11010;hb=44b0d7f658f16482f21f5ee84ab0a7f0f5dc3e59;hpb=1826971301dae48a9920ea4e331205371c48cc6b diff --git a/parser.cpp b/parser.cpp index 631adf6..fec3a22 100644 --- a/parser.cpp +++ b/parser.cpp @@ -1245,7 +1245,7 @@ static bool parser_close_call(parser_t *parser, shunt *sy) * Blub: what sorts of unreffing and resizing of * sy->out should I be doing here? */ - sy->out[fid] = syexp(foldval->node.context, foldval); + sy->out[fid] = syexp(foldval->context, foldval); sy->out.erase(sy->out.end() - paramcount, sy->out.end()); vec_free(exprs); @@ -1283,7 +1283,7 @@ static bool parser_close_call(parser_t *parser, shunt *sy) } /* overwrite fid, the function, with a call */ - sy->out[fid] = syexp(call->expression.node.context, (ast_expression*)call); + sy->out[fid] = syexp(call->expression.context, (ast_expression*)call); if (fun->vtype != TYPE_FUNCTION) { parseerror(parser, "not a function (%s)", type_name[fun->vtype]);