Fix CRLF check in parsing SDAS objects

This commit is contained in:
Rangi
2026-07-07 17:02:46 -04:00
parent e606f4e997
commit 08e83601f5
+1 -1
View File
@@ -53,7 +53,7 @@ static int nextLine(std::vector<char> &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]];