From c7c6da4312d02d71debd975be6c1bf17dcfdfd5b Mon Sep 17 00:00:00 2001 From: Pariterre Date: Fri, 10 Nov 2023 18:21:54 -0500 Subject: [PATCH] Tried to fix a compilation issue with uint comparison --- src/RigidBody/Joints.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/RigidBody/Joints.cpp b/src/RigidBody/Joints.cpp index 847532f0..cc573943 100644 --- a/src/RigidBody/Joints.cpp +++ b/src/RigidBody/Joints.cpp @@ -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::max()) { + if (this->GetBodyId(parentName.c_str()) == std::numeric_limits::max()) { *m_nbRoot += tp.nbDof(); // If the segment name is "Root", add the number of DoF of root }