ref: 1126acd115d8cded1f3b6a6e20134b60266f382e
parent: 84471603bc16659989db3fd5223b33772653b704
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Mon May 11 12:28:49 EDT 2015
Fix follow() it was returning yes allways.
--- a/cc1/lex.c
+++ b/cc1/lex.c
@@ -396,7 +396,7 @@
static uint8_t
follow(int expect, int ifyes, int ifno)
{
- if (*input->p++)
+ if (*input->p++ == expect)
return ifyes;
--input->p;
return ifno;