use proper floating point literal instead of implicit cast from int

This commit is contained in:
Dennis Luxen 2014-06-23 14:42:37 +02:00
parent f11adf5f80
commit 5e1110930e

View File

@ -56,7 +56,7 @@ void DescriptionFactory::SetEndSegment(const PhantomNode &target, const bool tra
const EdgeWeight segment_duration =
(traversed_in_reverse ? target.reverse_weight : target.forward_weight);
path_description.emplace_back(
target.location, target.name_id, segment_duration, 0, TurnInstruction::NoTurn, true, true);
target.location, target.name_id, segment_duration, 0.f, TurnInstruction::NoTurn, true, true);
BOOST_ASSERT(path_description.back().duration == segment_duration);
}