From 565b7f77878616dfd78d3fe842ec5f4e92a504e2 Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Wed, 2 Mar 2022 18:01:54 +0100
Subject: [PATCH] Use logical && instead of bitwise &

The compiler warns about &, and I think the author's intention
was && anyway.
---
 dune/gfe/polardecomposition.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/gfe/polardecomposition.hh b/dune/gfe/polardecomposition.hh
index 3665392b..7d48b9be 100644
--- a/dune/gfe/polardecomposition.hh
+++ b/dune/gfe/polardecomposition.hh
@@ -248,9 +248,9 @@ namespace Dune::GFE {
 
 
             for (int i = 0; i < 4; ++i) {
-                if ( i != maxi & i != mini ) {
+                if ( i != maxi && i != mini ) {
                     for (int j = 0; j < 4; ++j) {
-                        if ( j != maxi & j != mini & j != i  ) {
+                        if ( j != maxi && j != mini && j != i  ) {
                             if ( Bdiag[i] < Bdiag[j] ) {
                                 Pleft[1][j]  = 1;   // Second largest element at the second position
                                 Pright[j][1] = 1;
-- 
GitLab