Verified Commit 3dfa2e95 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: fix warning

parent 483dcca8
......@@ -278,7 +278,7 @@ namespace pinocchio
ModelTpl<Scalar,Options,JointCollectionTpl>::
addFrame(const Frame & frame)
{
PINOCCHIO_CHECK_INPUT_ARGUMENT(frame.parent >= 0 && frame.parent < njoints,
PINOCCHIO_CHECK_INPUT_ARGUMENT(frame.parent < (JointIndex)njoints,
"The index of the parent frame is not valid.");
// Check if the frame.name exists with the same type
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment