mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 06:10:56 +00:00
don't convert float test epxressions for --id and fix a typo in an error
message for !expr
This commit is contained in:
parent
791232e6d3
commit
356492f683
1 changed files with 3 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue