Commit 8c741ede authored by Roberto Raggi's avatar Roberto Raggi

Fixed possible crash when classifying chars.

parent d5b00aae
......@@ -221,7 +221,7 @@ void Lexer::scan_helper(Token *tok)
return;
}
char ch = _yychar;
unsigned char ch = _yychar;
yyinp();
switch (ch) {
......
......@@ -132,7 +132,7 @@ private:
const char *_currentChar;
const char *_lastChar;
const char *_tokenStart;
char _yychar;
unsigned char _yychar;
int _state;
union {
unsigned _flags;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment