[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

View file

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