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
|
@ -553,7 +553,11 @@ emit_sub_expr (expr_t *e, def_t *dest)
|
||||||
|| e->e.expr.type->type == ev_uinteger))
|
|| e->e.expr.type->type == ev_uinteger))
|
||||||
|| ((def_a->type->type == ev_integer
|
|| ((def_a->type->type == ev_integer
|
||||||
|| def_a->type->type == ev_uinteger)
|
|| 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;
|
def_t *tmp;
|
||||||
tmp = new_def (e->e.expr.type, 0, def_a->scope);
|
tmp = new_def (e->e.expr.type, 0, def_a->scope);
|
||||||
tmp->ofs = 0;
|
tmp->ofs = 0;
|
||||||
|
|
Loading…
Reference in New Issue