mirror of
https://github.com/gbdev/rgbds.git
synced 2026-08-20 05:44:32 +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');
|
||||
[[fallthrough]];
|
||||
case '\r':
|
||||
if (firstChar == '\r' && getc(file) != '\n') {
|
||||
if (firstChar == '\r') {
|
||||
consumeLF(where, file);
|
||||
}
|
||||
[[fallthrough]];
|
||||
|
||||
Reference in New Issue
Block a user