diff --git a/src/graph/edge.cc b/src/graph/edge.cc index 4e8c30abed1e33a3b271701555e2800b77effb3c..d17b874df9e3d0a4ba86ba3be064994652cd0a65 100644 --- a/src/graph/edge.cc +++ b/src/graph/edge.cc @@ -280,7 +280,7 @@ namespace hpp { if (constraints->isSatisfied (q1)) { if (constraints->isSatisfied (q2)) { path = (*steeringMethod_->get()) (q1, q2); - return true; + return (bool)path; } hppDout(info, "q2 does not satisfy the constraints"); }