mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-27 22:22:17 +00:00
Fix build on clang
This commit is contained in:
parent
3b4a5667ea
commit
ceb79f1897
1 changed files with 4 additions and 4 deletions
6
parser.c
6
parser.c
|
@ -1188,12 +1188,12 @@ static bool parser_close_call(parser_t *parser, shunt *sy)
|
|||
*/
|
||||
if (fold && ast_istype(fun, ast_value) && ((ast_value*)fun)->intrinsic) {
|
||||
ast_expression **exprs = NULL;
|
||||
ast_expression *fold = NULL;
|
||||
ast_expression *foldval = NULL;
|
||||
|
||||
for (i = 0; i < paramcount; i++)
|
||||
vec_push(exprs, sy->out[fid+1 + i].out);
|
||||
|
||||
if (!(fold = intrin_fold(parser->intrin, (ast_value*)fun, exprs))) {
|
||||
if (!(foldval = intrin_fold(parser->intrin, (ast_value*)fun, exprs))) {
|
||||
vec_free(exprs);
|
||||
goto fold_leave;
|
||||
}
|
||||
|
@ -1202,7 +1202,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(fold->node.context, fold);
|
||||
sy->out[fid] = syexp(foldval->node.context, foldval);
|
||||
vec_shrinkby(sy->out, 1);
|
||||
vec_free(exprs);
|
||||
|
||||
|
|
Loading…
Reference in a new issue