scc

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

commit 93b37d4f0e0edb56f793ccab58f4800bf16f508d
parent 056904fd8e9e34a544e826450559a39fc5a0f617
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu,  7 May 2015 09:57:14 +0200

Fix long long constant in lex.c

LONG + LONG is not anymore == LLONG

Diffstat:
Mcc1/lex.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cc1/lex.c b/cc1/lex.c @@ -29,9 +29,9 @@ integer(char *s, char base) type: switch (ch = toupper(getchar())) { case 'L': - if (size == LONG + LONG) + if (size == LLONG) goto wrong_type; - size += LONG; + size = (size == LONG) ? LLONG : LONG; goto type; case 'U': if (sign == UNSIGNED)