mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue