mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
copying the output type on ast_array_index_codegen
This commit is contained in:
parent
a01388ea7d
commit
5887afae62
1 changed files with 4 additions and 0 deletions
4
ast.c
4
ast.c
|
@ -2253,6 +2253,8 @@ bool ast_array_index_codegen(ast_array_index *self, ast_function *func, bool lva
|
|||
|
||||
*out = ir_call_value(call);
|
||||
self->expression.outr = *out;
|
||||
(*out)->vtype = self->expression.vtype;
|
||||
codegen_output_type(self, *out);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -2278,6 +2280,8 @@ bool ast_array_index_codegen(ast_array_index *self, ast_function *func, bool lva
|
|||
compile_error(ast_ctx(self), "array indexing here needs an integer constant");
|
||||
return false;
|
||||
}
|
||||
(*out)->vtype = self->expression.vtype;
|
||||
codegen_output_type(self, *out);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue