Skip to content

Commit 750fd0c

Browse files
committed
really zero-init'ed
1 parent 94aea8d commit 750fd0c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Sofa/framework/Type/src/sofa/type

Sofa/framework/Type/src/sofa/type/Mat.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ constexpr Mat<L,L,Real> tensorProduct(const Vec<L,Real>& a, const Vec<L,Real>& b
13561356
template <sofa::Size L, sofa::Size C, sofa::Size P, class real>
13571357
constexpr Mat<L,P,real> operator*(const Mat<L,C,real>& m1, const Mat<C,P,real>& m2) noexcept
13581358
{
1359-
Mat<L,P,real> r;
1359+
Mat<L,P,real> r(static_cast<real>(0));
13601360
for (Size i = 0; i < L; ++i)
13611361
{
13621362
for (Size k = 0; k < C; ++k)

0 commit comments

Comments
 (0)