From: Wolfgang (Blub) Bumiller Date: Sat, 18 Aug 2012 17:37:51 +0000 (+0200) Subject: ast_call: adopt the funciton's return type X-Git-Tag: 0.1-rc1~188 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=40fe52e665d902a83e545145dfedfacf0cc863a2;p=xonotic%2Fgmqcc.git ast_call: adopt the funciton's return type --- diff --git a/ast.c b/ast.c index 89ae7ac..c3dfe21 100644 --- a/ast.c +++ b/ast.c @@ -533,6 +533,10 @@ ast_call* ast_call_new(lex_ctx ctx, self->func = funcexpr; + self->expression.vtype = funcexpr->expression.next->expression.vtype; + if (funcexpr->expression.next->expression.next) + self->expression.next = ast_type_copy(ctx, funcexpr->expression.next->expression.next); + return self; } MEM_VEC_FUNCTIONS(ast_call, ast_expression*, params)