Skip to content
Snippets Groups Projects
Commit 565b7f77 authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Use logical && instead of bitwise &

The compiler warns about &, and I think the author's intention
was && anyway.
parent e2e4ae37
Branches
No related tags found
1 merge request!93Enable more tests for the various TargetSpace classes
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment