Skip to content
Snippets Groups Projects
Commit 65bfc856 authored by Michael Hart's avatar Michael Hart
Browse files

Re #13632 Fixed typo logic error in getWord

parent f5e88bb8
No related branches found
No related tags found
No related merge requests found
......@@ -897,7 +897,7 @@ std::string getWord(std::istream &in, bool consumeEOL) {
nextch = static_cast<char>(in.get());
// Handle CRLF and LFCR on Unix by consuming both
if (nextch == '\n' || nextch == '\n') {
if (nextch == '\n' || nextch == '\r') {
if ((nextch == '\n' && in.peek() == '\r') ||
(nextch == '\r' && in.peek() == '\n')) {
in.ignore();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment