shithub: rgbds

Download patch

ref: b8307432b896deb73785ec3f0e08930b7bea7691
parent: 80a62a8a03fc252b68c59b110879b2694693e991
author: ISSOtm <[email protected]>
date: Sat Oct 1 14:28:02 EDT 2022

Fix use of bitwise OR instead of logical

Thanks, Clang!

--- a/src/gfx/pal_spec.cpp
+++ b/src/gfx/pal_spec.cpp
@@ -357,7 +357,7 @@
 		}
 
 		// 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;
 		}