Store an unsigned char in the current lexer character buffer ("c") to avoid confusion...
authorChristoph Mallon <christoph.mallon@gmx.de>
Mon, 8 Dec 2008 08:50:33 +0000 (08:50 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Mon, 8 Dec 2008 08:50:33 +0000 (08:50 +0000)
[r24384]

lexer.c

diff --git a/lexer.c b/lexer.c
index b797a90..d2180c0 100644 (file)
--- a/lexer.c
+++ b/lexer.c
@@ -96,7 +96,7 @@ static inline void next_real_char(void)
                bufpos = buf + MAX_PUTBACK;
                bufend = buf + MAX_PUTBACK + s;
        }
-       c = *bufpos++;
+       c = (unsigned char)*bufpos++;
 }
 
 /**