mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-29 20:20:43 +00:00
seems gcc3 drops the missed enum in switch warning :/
This commit is contained in:
parent
07b59d2f07
commit
3d5447c71f
1 changed files with 6 additions and 0 deletions
|
@ -485,6 +485,9 @@ print_expr (expr_t *e)
|
|||
case ex_integer:
|
||||
printf ("%d", e->e.integer_val);
|
||||
break;
|
||||
case ex_uinteger:
|
||||
printf ("%d", e->e.uinteger_val);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1019,6 +1022,7 @@ unary_expr (int op, expr_t *e)
|
|||
return n;
|
||||
}
|
||||
case ex_integer:
|
||||
case ex_uinteger:
|
||||
e->e.integer_val *= -1;
|
||||
return e;
|
||||
case ex_float:
|
||||
|
@ -1066,6 +1070,7 @@ unary_expr (int op, expr_t *e)
|
|||
case ex_nil:
|
||||
return error (e, "invalid type for unary !");
|
||||
case ex_integer:
|
||||
case ex_uinteger:
|
||||
e->e.integer_val = !e->e.integer_val;
|
||||
return e;
|
||||
case ex_float:
|
||||
|
@ -1119,6 +1124,7 @@ unary_expr (int op, expr_t *e)
|
|||
return n;
|
||||
}
|
||||
case ex_integer:
|
||||
case ex_uinteger:
|
||||
e->e.integer_val = ~e->e.integer_val;
|
||||
return e;
|
||||
case ex_float:
|
||||
|
|
Loading…
Reference in a new issue