use proper floating point literal instead of implicit cast from int
This commit is contained in:
parent
f11adf5f80
commit
5e1110930e
@ -56,7 +56,7 @@ void DescriptionFactory::SetEndSegment(const PhantomNode &target, const bool tra
|
|||||||
const EdgeWeight segment_duration =
|
const EdgeWeight segment_duration =
|
||||||
(traversed_in_reverse ? target.reverse_weight : target.forward_weight);
|
(traversed_in_reverse ? target.reverse_weight : target.forward_weight);
|
||||||
path_description.emplace_back(
|
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);
|
BOOST_ASSERT(path_description.back().duration == segment_duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user