We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed1fef4 commit ebe842fCopy full SHA for ebe842f
1 file changed
simplecpp.cpp
@@ -278,8 +278,8 @@ class simplecpp::TokenList::Stream {
278
unsigned char peekChar() {
279
const int pk = peek();
280
auto ch = static_cast<unsigned char>(pk);
281
- //if (pk == EOF)
282
- //return ch;
+ if (pk == EOF)
+ return ch;
283
284
// For UTF-16 encoded files the BOM is 0xfeff/0xfffe. If the
285
// character is non-ASCII character then replace it with 0xff
0 commit comments