scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit d128d9dd0113d32df0ede231e1d945684b9fab29
parent 6c673209747fbc604bb982a22953993055b75475
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  3 Apr 2014 06:49:11 +0200

Fix declaration of empty qualifers pointers

A pointer without any qualifier was creating a abort in mktype due
we were passing an incorrect type operator.

Diffstat:
Mtypes.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/types.c b/types.c @@ -147,6 +147,8 @@ qualifier(Type *tp, uint8_t qlf) { uint8_t q = tp->op; + if (!qlf) + return tp; if (q & TQUALIFIER) { if (q == qlf) return tp;