mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-07 00:11:39 +00:00
use the correct type when taking the address of a pointer derefernece
This commit is contained in:
parent
dd39fde9cf
commit
f59f766af1
2 changed files with 2 additions and 2 deletions
|
@ -2097,7 +2097,7 @@ address_expr (expr_t *e1, expr_t *e2, type_t *t)
|
||||||
e = e1->e.expr.e1;
|
e = e1->e.expr.e1;
|
||||||
type = get_type (e)->aux_type;
|
type = get_type (e)->aux_type;
|
||||||
if (e->type == ex_expr && e->e.expr.op == '.') {
|
if (e->type == ex_expr && e->e.expr.op == '.') {
|
||||||
e->e.expr.type = pointer_type (e->e.expr.type);
|
e->e.expr.type = e->e.expr.type;
|
||||||
e->e.expr.op = '&';
|
e->e.expr.op = '&';
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue