Fix boolean bitwise and warning.

(cherry picked from commit 70410310a4)
This commit is contained in:
Antonio Sanchez
2023-04-25 15:24:49 +00:00
parent f296720d7d
commit a4ecfd8ead

View File

@@ -70,7 +70,7 @@ void test_dynamic_bool()
for(Index i=0;i<C.rows();++i)
for(Index j=0;j<C.cols();++j)
for(Index k=0;k<A.cols();++k)
D.coeffRef(i,j) |= A.coeff(i,k) & B.coeff(k,j);
D.coeffRef(i,j) |= (A.coeff(i,k) && B.coeff(k,j));
C += A * B;
VERIFY_IS_EQUAL(C, D);