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

Fixed possible crash when classifying chars.

parent d5b00aae
...@@ -221,7 +221,7 @@ void Lexer::scan_helper(Token *tok) ...@@ -221,7 +221,7 @@ void Lexer::scan_helper(Token *tok)
return; return;
} }
char ch = _yychar; unsigned char ch = _yychar;
yyinp(); yyinp();
switch (ch) { switch (ch) {
......
...@@ -132,7 +132,7 @@ private: ...@@ -132,7 +132,7 @@ private:
const char *_currentChar; const char *_currentChar;
const char *_lastChar; const char *_lastChar;
const char *_tokenStart; const char *_tokenStart;
char _yychar; unsigned char _yychar;
int _state; int _state;
union { union {
unsigned _flags; unsigned _flags;
......
Supports Markdown
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