scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit d7890765b7b847f8856c3da07ead0de966b69b80
parent 45c7260ce0fb41d8bf7eb57274af599e84904b06
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 15 Apr 2014 22:10:51 +0200

Fix declaration of long variables

The unsigned long and long cases were interchanged.

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

diff --git a/types.c b/types.c @@ -116,7 +116,7 @@ ctype(int8_t type, int8_t sign, int8_t size) case INT: switch (size) { case 0: return (sign) ? uinttype : inttype; case SHORT: return (sign) ? ushortype : shortype; - case LONG: return (sign) ? longtype : ulongtype; + case LONG: return (sign) ? ulongtype : longtype; case LONG+LONG: return (sign) ? ullongtype : llongtype; } case FLOAT: switch (size) {