Commit 418e5af5 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

fix compilation warnings

parent 9fde602f
......@@ -975,7 +975,7 @@ short RbprmBuilder::generateContactState(::CORBA::UShort cId, const char* name,
if (rep.success_) {
lastStatesComputed_.push_back(rep.result_);
lastStatesComputedTime_.push_back(std::make_pair(-1., rep.result_));
return lastStatesComputed_.size() - 1;
return (CORBA::Short)(lastStatesComputed_.size() - 1);
}
}
return -1;
......@@ -2785,7 +2785,7 @@ CORBA::Short RbprmBuilder::isLimbInContactIntermediary(const char* limbName, uns
}
}
CORBA::Short RbprmBuilder::getNumStates() throw(hpp::Error) { return lastStatesComputed_.size(); }
CORBA::Short RbprmBuilder::getNumStates() throw(hpp::Error) { return (CORBA::Short)lastStatesComputed_.size(); }
CORBA::Short RbprmBuilder::computeIntermediary(unsigned short stateFrom,
unsigned short stateTo) throw(hpp::Error) try {
......
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