cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 8b10f07e6260895025a4ea0efa05b8bd57ca92d9
parent 52eed9336c2cb8cd68ea04be6a71471bef1dcc5e
Author: Michael Forney <mforney@mforney.org>
Date:   Fri, 22 Feb 2019 21:09:07 -0800

When & is applied to an array, it is no longer decayed

Diffstat:
Mexpr.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/expr.c b/expr.c @@ -88,8 +88,10 @@ mkunaryexpr(enum tokenkind op, struct expression *base) switch (op) { case TBAND: - if (base->flags & EXPRFLAG_DECAYED) + if (base->flags & EXPRFLAG_DECAYED) { + base->flags &= ~EXPRFLAG_DECAYED; return base; + } expr = mkexpr(EXPRUNARY, mkpointertype(base->type), 0); expr->unary.op = op; expr->unary.base = base;