scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit 6f385b9586ba41aa1d8ba52622bd4792c36453f6
parent 3cf019b73b85b299a440079026905b0fecbe82ff
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  2 Sep 2015 22:36:14 +0200

Simplify decay()

Two lines less ;)

Diffstat:
Mcc1/expr.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/cc1/expr.c b/cc1/expr.c @@ -106,12 +106,10 @@ decay(Node *np) return new; } case FTN: - break; + np = node(OADDR, mktype(tp, PTR, 0, NULL), np, NULL); default: return np; } - - return node(OADDR, mktype(tp, PTR, 0, NULL), np, NULL); } Node *