scc

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

commit 9fbe2c36662bf635d8e4d477ea75470a08a5c11f
parent 89db1825e0012c166dc6443493c3ebeac21d49e6
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed, 26 Aug 2015 12:43:22 +0200

Fix logic() in lex.c
The test was wrong because it was comparing with the result token instead
of '=' character.

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

diff --git a/cc1/lex.c b/cc1/lex.c @@ -444,7 +444,7 @@ logic(int op, int equal, int logic) { char c; - if ((c = *input->p++) == equal) + if ((c = *input->p++) == '=') return equal; if (c == op) return logic;