mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 06:02:22 +00:00
ast_call: adopt the funciton's return type
This commit is contained in:
parent
b7b0fcdc94
commit
40fe52e665
1 changed files with 4 additions and 0 deletions
4
ast.c
4
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)
|
||||
|
|
Loading…
Reference in a new issue