diff --git a/src/link/sdas_obj.cpp b/src/link/sdas_obj.cpp index 134ff7c3..cf6d74ff 100644 --- a/src/link/sdas_obj.cpp +++ b/src/link/sdas_obj.cpp @@ -53,7 +53,7 @@ static int nextLine(std::vector &lineBuf, Location &where, FILE *file) { } while (firstChar != EOF && firstChar != '\r' && firstChar != '\n'); [[fallthrough]]; case '\r': - if (firstChar == '\r' && getc(file) != '\n') { + if (firstChar == '\r') { consumeLF(where, file); } [[fallthrough]];