mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Avoid softlock if linker script contains a comment but no newline
This commit is contained in:
@@ -241,7 +241,7 @@ yy::parser::symbol_type yylex() {
|
||||
}
|
||||
// Then, skip a comment if applicable.
|
||||
if (c == ';') {
|
||||
while (!isNewline(c)) {
|
||||
while (c != EOF && !isNewline(c)) {
|
||||
c = context.file.sbumpc();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user