From fc399e01fee97130b258c68b70f028ad8fcd4b6b Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Thu, 10 Jul 2014 15:06:20 +0200 Subject: [PATCH] explicitly cast segment length from float to int --- Descriptors/JSONDescriptor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Descriptors/JSONDescriptor.h b/Descriptors/JSONDescriptor.h index 190bfc5f7..f4269c781 100644 --- a/Descriptors/JSONDescriptor.h +++ b/Descriptors/JSONDescriptor.h @@ -344,13 +344,13 @@ template class JSONDescriptor : public BaseDescriptor(segment.length)) + "m"); + UintToString(static_cast(segment.length)) + "m"); const double bearing_value = (segment.bearing / 10.) ; json_instruction_row.values.push_back(Azimuth::Get(bearing_value)); json_instruction_row.values.push_back(static_cast(round(bearing_value))); route_segments_list.emplace_back( - segment.name_id, segment.length, route_segments_list.size()); + segment.name_id, static_cast(segment.length), route_segments_list.size()); json_instruction_array.values.push_back(json_instruction_row); } }