mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix use of bitwise OR instead of logical
Thanks, Clang!
This commit is contained in:
@@ -357,7 +357,7 @@ static void parseGPLFile(std::filebuf &file) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: C++20 will allow `line.starts_with` instead of `!line.rfind` with 0
|
// FIXME: C++20 will allow `line.starts_with` instead of `!line.rfind` with 0
|
||||||
if (!line.rfind("#", 0) | !line.rfind("Name:", 0) || !line.rfind("Column:", 0)) {
|
if (!line.rfind("#", 0) || !line.rfind("Name:", 0) || !line.rfind("Column:", 0)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user