From 27ccfa67c550cb1ee58b40fb26a1538c45b26a75 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 9 Aug 2001 17:05:30 +0000 Subject: [PATCH] fix the efficiency of unary expressions as args to a function --- tools/qfcc/source/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/qfcc/source/emit.c b/tools/qfcc/source/emit.c index 8c55e6af6..ff2c9d5c4 100644 --- a/tools/qfcc/source/emit.c +++ b/tools/qfcc/source/emit.c @@ -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); }