mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
cast between integer and unsigned just by changing access method
effectively deprecating conv.ui and conv.iu (they'll die eventually:)
This commit is contained in:
parent
3a6c8b8b16
commit
23b525059f
1 changed files with 5 additions and 1 deletions
|
@ -553,7 +553,11 @@ emit_sub_expr (expr_t *e, def_t *dest)
|
|||
|| e->e.expr.type->type == ev_uinteger))
|
||||
|| ((def_a->type->type == ev_integer
|
||||
|| def_a->type->type == ev_uinteger)
|
||||
&& e->e.expr.type->type == ev_pointer)) {
|
||||
&& e->e.expr.type->type == ev_pointer)
|
||||
|| (def_a->type->type == ev_integer
|
||||
&& e->e.expr.type->type == ev_uinteger)
|
||||
|| (def_a->type->type == ev_uinteger
|
||||
&& e->e.expr.type->type == ev_integer)) {
|
||||
def_t *tmp;
|
||||
tmp = new_def (e->e.expr.type, 0, def_a->scope);
|
||||
tmp->ofs = 0;
|
||||
|
|
Loading…
Reference in a new issue