Skip to content

Commit

Permalink
Fix macOS compilation of FeasibleContactWrenchTask
Browse files Browse the repository at this point in the history
Evaluate static cast of Wrenchd::SizeAtCompileTime
  • Loading branch information
GiulioRomualdi committed May 24, 2023
1 parent 28f5c0a commit 93be430
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/TSID/src/FeasibleContactWrenchTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ bool FeasibleContactWrenchTask::setVariablesHandler(const System::VariablesHandl
return false;
}

if (m_contactWrench.variable.size != BipedalLocomotion::Math::Wrenchd::SizeAtCompileTime)
if (m_contactWrench.variable.size
!= static_cast<int>(BipedalLocomotion::Math::Wrenchd::SizeAtCompileTime))
{
log()->error("{} The variable size associated to the contact named {} is different "
"from {}.",
errorPrefix,
m_contactWrench.variable.size,
BipedalLocomotion::Math::Wrenchd::SizeAtCompileTime);
m_contactWrench.variable.name,
static_cast<int>(BipedalLocomotion::Math::Wrenchd::SizeAtCompileTime));
return false;
}

Expand Down

0 comments on commit 93be430

Please sign in to comment.