mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 15:30:50 +00:00
Allow cast expressions to be lvalues.
These really need to be alias expressions rather than cast expressions so the two can be separated as cast expressions should not be lvalues.
This commit is contained in:
parent
fa742ceed6
commit
976ff8a6bb
1 changed files with 2 additions and 0 deletions
|
@ -2272,6 +2272,8 @@ is_lvalue (expr_t *e)
|
|||
return 1;
|
||||
if (e->type == ex_uexpr && e->e.expr.op == '.')
|
||||
return 1;
|
||||
if (e->type == ex_uexpr && e->e.expr.op == 'C') //FIXME really need alias
|
||||
return is_lvalue (e->e.expr.e1);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue