mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-04 03:05:36 +00:00
Fix CRLF check in parsing SDAS objects
This commit is contained in:
1 parent
e606f4e997
commit
08e83601f5
1 file changed
+1
-1
@@ -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