shithub: scc

Download patch

ref: 80e7f658d5789313b32f2fb7677032766aca5c42
parent: 6b19dacc73f265c688c7ea1f6b371f6dd5525924
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Sep 24 17:26:11 EDT 2013

Define bool as unsigned

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

--- a/decl.c
+++ b/decl.c
@@ -225,7 +225,7 @@
 				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:
--