Skip to content

Commit ebe842f

Browse files
Update simplecpp.cpp
1 parent ed1fef4 commit ebe842f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

simplecpp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ class simplecpp::TokenList::Stream {
278278
unsigned char peekChar() {
279279
const int pk = peek();
280280
auto ch = static_cast<unsigned char>(pk);
281-
//if (pk == EOF)
282-
//return ch;
281+
if (pk == EOF)
282+
return ch;
283283

284284
// For UTF-16 encoded files the BOM is 0xfeff/0xfffe. If the
285285
// character is non-ASCII character then replace it with 0xff

0 commit comments

Comments
 (0)