From: Christoph Mallon Date: Mon, 8 Dec 2008 08:50:33 +0000 (+0000) Subject: Store an unsigned char in the current lexer character buffer ("c") to avoid confusion... X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=c44333098d7674edb98d05f7e86111cce600263a;p=cparser Store an unsigned char in the current lexer character buffer ("c") to avoid confusion with EOF. [r24384] --- diff --git a/lexer.c b/lexer.c index b797a90..d2180c0 100644 --- 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++; } /**