Fix boolean bitwise and warning.

(cherry picked from commit 70410310a40bf6f790e8f3c785e78aa2b8f4ca12)
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);