]> git.ipfire.org Git - thirdparty/vectorscan.git/commitdiff
clang 14 does not allow bitwise OR for bools
authorKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Fri, 16 Sep 2022 11:02:53 +0000 (14:02 +0300)
committerKonstantinos Margaritis <konstantinos@vectorcamp.gr>
Fri, 16 Sep 2022 11:02:53 +0000 (14:02 +0300)
src/nfagraph/ng_misc_opt.cpp

index d0f1f029ac1b3de8eede9db3e94d22e50ef99f98..2b898cf764f84237422ba4e096d69b38716a5bf7 100644 (file)
@@ -385,8 +385,7 @@ bool improveGraph(NGHolder &g, som_type som) {
 
     const vector<NFAVertex> ordering = getTopoOrdering(g);
 
-    return enlargeCyclicCR(g, som, ordering)
-        | enlargeCyclicCR_rev(g, ordering);
+    return enlargeCyclicCR(g, som, ordering) || enlargeCyclicCR_rev(g, ordering);
 }
 
 /** finds a smaller reachability for a state by the reverse transformation of