Commit f367db05 authored by Florent Lamiraux's avatar Florent Lamiraux Committed by Florent Lamiraux florent@laas.fr
Browse files

Fix compilation warning.

parent bdc99612
...@@ -129,7 +129,7 @@ namespace hpp { ...@@ -129,7 +129,7 @@ namespace hpp {
hppDout (info, "Joint of locked joint not found: " << *lj); hppDout (info, "Joint of locked joint not found: " << *lj);
continue; continue;
} }
bool cstRHS = lj->constantRightHandSide(); bool cstRHS (lj->parameterSize () == 0);
i1 = model.getJointId(jointName); i2 = model.parents[i1]; i1 = model.getJointId(jointName); i2 = model.parents[i1];
recurseSetRelMotion (matrix, i1, i2, (cstRHS ? Constrained : recurseSetRelMotion (matrix, i1, i2, (cstRHS ? Constrained :
...@@ -160,7 +160,7 @@ namespace hpp { ...@@ -160,7 +160,7 @@ namespace hpp {
} }
} }
bool cstRHS = nc->constantRightHandSide(); bool cstRHS (nc->parameterSize () == 0);
recurseSetRelMotion (matrix, i1, i2, (cstRHS ? Constrained : Parameterized)); recurseSetRelMotion (matrix, i1, i2, (cstRHS ? Constrained : Parameterized));
} }
} }
......
Supports Markdown
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