diff --git a/src/libs/3rdparty/cplusplus/Lexer.cpp b/src/libs/3rdparty/cplusplus/Lexer.cpp index 981daef51fe..8d4e9416c9c 100644 --- a/src/libs/3rdparty/cplusplus/Lexer.cpp +++ b/src/libs/3rdparty/cplusplus/Lexer.cpp @@ -85,7 +85,7 @@ void Lexer::setSource(const char *firstChar, const char *lastChar) _firstChar = firstChar; _lastChar = lastChar; _currentChar = _firstChar - 1; - _currentCharUtf16 = -1; + _currentCharUtf16 = ~0; _tokenStart = _currentChar; _yychar = '\n'; }