Fix boolean bitwise and warning.

This commit is contained in:
Antonio Sanchez 2023-04-25 15:24:49 +00:00
parent f6cf5dca80
commit 70410310a4

View File

@ -69,7 +69,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);