From 356492f6830b805bb508ef63ee8accf27ef79866 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 6 Oct 2001 04:48:52 +0000 Subject: [PATCH] don't convert float test epxressions for --id and fix a typo in an error message for !expr --- tools/qfcc/source/expr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/qfcc/source/expr.c b/tools/qfcc/source/expr.c index 8bd4a6477..a3e2cbd3e 100644 --- a/tools/qfcc/source/expr.c +++ b/tools/qfcc/source/expr.c @@ -754,6 +754,8 @@ test_expr (expr_t *e, int test) case ev_integer: return e; case ev_float: + if (options.version == PROG_ID_VERSION) + return e; new = new_expr (); new->type = ex_float; break; @@ -963,7 +965,7 @@ unary_expr (int op, expr_t *e) abort (); case ex_block: if (!e->e.block.result) - return error (e, "invalid type for unary -"); + return error (e, "invalid type for unary !"); case ex_uexpr: case ex_expr: case ex_def: