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:
Bill Currie 2003-09-02 16:45:36 +00:00
parent 3a6c8b8b16
commit 23b525059f
1 changed files with 5 additions and 1 deletions

View File

@ -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;