mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
fix the efficiency of unary expressions as args to a function
This commit is contained in:
parent
2774260898
commit
27ccfa67c5
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ emit_function_call (expr_t *e, def_t *dest)
|
|||
parm = def_parms[ind];
|
||||
parm.type = types[get_type (earg)];
|
||||
arg = emit_sub_expr (earg, &parm);
|
||||
if (earg->type != ex_expr) {
|
||||
if (earg->type != ex_expr && earg->type != ex_uexpr) {
|
||||
op = PR_Opcode_Find ("=", 5, arg, &parm, &parm);
|
||||
emit_statement (e->line, op, arg, &parm, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue