Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet committed Aug 27, 2020
1 parent ecf3faf commit 5da5f10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/RBDyn/Momentum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ void computeCentroidalInertia(const MultiBody & mb,
ci = Matrix6d::Identity();

sva::PTransformd X_com_0(Vector3d(-com));
for(int i = 0; i < mb.nrBodies(); ++i)
size_t nrBodies = static_cast<size_t>(mb.nrBodies());
for(size_t i = 0; i < nrBodies; ++i)
{
// body momentum in body coordinate
sva::ForceVecd hi = bodies[i].inertia() * mbc.bodyVelB[i];
Expand Down

0 comments on commit 5da5f10

Please sign in to comment.