From b8307432b896deb73785ec3f0e08930b7bea7691 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 1 Oct 2022 18:28:02 +0200 Subject: [PATCH] Fix use of bitwise OR instead of logical Thanks, Clang! --- src/gfx/pal_spec.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx/pal_spec.cpp b/src/gfx/pal_spec.cpp index eb08e63b..613eada6 100644 --- a/src/gfx/pal_spec.cpp +++ b/src/gfx/pal_spec.cpp @@ -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; }