[qfcc] Make is_indirect easier to read

This commit is contained in:
Bill Currie 2020-03-16 23:26:39 +09:00
parent 5c0c056e2c
commit f9face0cef
1 changed files with 4 additions and 4 deletions

View File

@ -718,11 +718,11 @@ is_const_ptr (expr_t *e)
static __attribute__((pure)) int
is_indirect (expr_t *e)
{
if (e->type == ex_expr && e->e.expr.op == '.')
if ((e->type == ex_expr || e->type == ex_uexpr)
&& e->e.expr.op == '.') {
return 1;
if (!(e->type == ex_uexpr && e->e.expr.op == '.'))
return 0;
return 1;
}
return 0;
}
static sblock_t *