commit 9fbe2c36662bf635d8e4d477ea75470a08a5c11f
Author: Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Wed Aug 26 12:43:22 2015 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Wed Aug 26 12:43:22 2015 +0200
Fix logic() in lex.c
The test was wrong because it was comparing with the result token instead
of '=' character.
diff --git a/cc1/lex.c b/cc1/lex.c
index 58ba415..1c61f0d 100644
--- 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;