Skip to content

Commit

Permalink
Fix compilation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
florent-lamiraux committed Jun 4, 2019
1 parent bdc9961 commit f367db0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/relative-motion.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ namespace hpp {
hppDout (info, "Joint of locked joint not found: " << *lj);
continue;
}
bool cstRHS = lj->constantRightHandSide();
bool cstRHS (lj->parameterSize () == 0);

i1 = model.getJointId(jointName); i2 = model.parents[i1];
recurseSetRelMotion (matrix, i1, i2, (cstRHS ? Constrained :
Expand Down Expand Up @@ -160,7 +160,7 @@ namespace hpp {
}
}

bool cstRHS = nc->constantRightHandSide();
bool cstRHS (nc->parameterSize () == 0);
recurseSetRelMotion (matrix, i1, i2, (cstRHS ? Constrained : Parameterized));
}
}
Expand Down

0 comments on commit f367db0

Please sign in to comment.