mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
[qfcc] Fix another type aliasing bug
This one exposed by the address expression cleanup.
This commit is contained in:
parent
fa482e8ee5
commit
d14f695c68
1 changed files with 2 additions and 1 deletions
|
@ -1921,7 +1921,8 @@ bitnot_expr:
|
||||||
if (extract_type (e) != ev_pointer)
|
if (extract_type (e) != ev_pointer)
|
||||||
return error (e, "invalid type for unary .");
|
return error (e, "invalid type for unary .");
|
||||||
e = new_unary_expr ('.', e);
|
e = new_unary_expr ('.', e);
|
||||||
e->e.expr.type = get_type (e->e.expr.e1)->t.fldptr.type;
|
const type_t *t = unalias_type (get_type (e->e.expr.e1));
|
||||||
|
e->e.expr.type = t->t.fldptr.type;
|
||||||
return e;
|
return e;
|
||||||
case '+':
|
case '+':
|
||||||
if (!is_math (get_type (e)))
|
if (!is_math (get_type (e)))
|
||||||
|
|
Loading…
Reference in a new issue