Fix use of bitwise OR instead of logical

Thanks, Clang!
This commit is contained in:
ISSOtm
2022-10-01 18:28:02 +02:00
committed by Rangi
parent 80a62a8a03
commit b8307432b8

View File

@@ -357,7 +357,7 @@ static void parseGPLFile(std::filebuf &file) {
}
// 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;
}