Only push an enum into the environment, if it has a name.
[cparser] / lexer.c
diff --git a/lexer.c b/lexer.c
index e8c183c..6a6a945 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -79,7 +79,7 @@ static inline void next_real_char(void)
 static inline void put_back(int pc)
 {
        assert(bufpos > buf);
-       *(--bufpos - buf + buf) = pc;
+       *(--bufpos - buf + buf) = (char) pc;
 
 #ifdef DEBUG_CHARS
        printf("putback '%c'\n", pc);