shithub: scc

Download patch

ref: 9fbe2c36662bf635d8e4d477ea75470a08a5c11f
parent: 89db1825e0012c166dc6443493c3ebeac21d49e6
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Aug 26 08:43:22 EDT 2015

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

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