don't convert float test epxressions for --id and fix a typo in an error

message for !expr
This commit is contained in:
Bill Currie 2001-10-06 04:48:52 +00:00
parent 791232e6d3
commit 356492f683

View file

@ -754,6 +754,8 @@ test_expr (expr_t *e, int test)
case ev_integer: case ev_integer:
return e; return e;
case ev_float: case ev_float:
if (options.version == PROG_ID_VERSION)
return e;
new = new_expr (); new = new_expr ();
new->type = ex_float; new->type = ex_float;
break; break;
@ -963,7 +965,7 @@ unary_expr (int op, expr_t *e)
abort (); abort ();
case ex_block: case ex_block:
if (!e->e.block.result) if (!e->e.block.result)
return error (e, "invalid type for unary -"); return error (e, "invalid type for unary !");
case ex_uexpr: case ex_uexpr:
case ex_expr: case ex_expr:
case ex_def: case ex_def: