Skip to content

Commit e560de5

Browse files
committed
Initialize integral array in compute_mass_properties_3D with empty braces for clarity
1 parent 42510aa commit e560de5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ipc/dynamics/rigid/mass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace {
5656
assert(faces.rows() > 0 && faces.cols() == 3);
5757

5858
// order: 1, x, y, z, x^2, y^2, z^2, xy, yz, zx
59-
std::array<double, 10> integral = { 0.0 };
59+
std::array<double, 10> integral {};
6060

6161
for (int i = 0; i < faces.rows(); i++) {
6262
// Get vertices of triangle i.

0 commit comments

Comments
 (0)