mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-26 00:34:27 +00:00
Fix CRLF check in parsing SDAS objects
This commit is contained in:
@@ -53,7 +53,7 @@ static int nextLine(std::vector<char> &lineBuf, Location &where, FILE *file) {
|
|||||||
} while (firstChar != EOF && firstChar != '\r' && firstChar != '\n');
|
} while (firstChar != EOF && firstChar != '\r' && firstChar != '\n');
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case '\r':
|
case '\r':
|
||||||
if (firstChar == '\r' && getc(file) != '\n') {
|
if (firstChar == '\r') {
|
||||||
consumeLF(where, file);
|
consumeLF(where, file);
|
||||||
}
|
}
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
|
|||||||
Reference in New Issue
Block a user