Skip to content

Commit

Permalink
Tried to fix a compilation issue with uint comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
pariterre authored Nov 10, 2023
1 parent b1a178c commit c7c6da4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/RigidBody/Joints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,7 @@ size_t rigidbody::Joints::AddSegment(
RigidBodyDynamics::Math::SpatialTransform(referenceFrame.rot().transpose(),
referenceFrame.trans())
);
if (this->GetBodyId(parentName.c_str()) ==
std::numeric_limits<size_t>::max()) {
if (this->GetBodyId(parentName.c_str()) == std::numeric_limits<unsigned int>::max()) {
*m_nbRoot +=
tp.nbDof(); // If the segment name is "Root", add the number of DoF of root
}
Expand Down

0 comments on commit c7c6da4

Please sign in to comment.