scc

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

commit 80e7f658d5789313b32f2fb7677032766aca5c42
parent 6b19dacc73f265c688c7ea1f6b371f6dd5525924
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 24 Sep 2013 21:26:11 +0200

Define bool as unsigned

bool type is a unsigned type, so assign the correct value in the
ctype struct.

Diffstat:
Mdecl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/decl.c b/decl.c @@ -225,7 +225,7 @@ spec(void) switch (tp->type) { case CHAR: if (!options.charsign) { - tp->c_unsigned = 1; + case BOOL: tp->c_unsigned = 1; break; } case INT: case SHORT: case LONG: case LLONG: