diff --git a/Descriptors/JSONDescriptor.h b/Descriptors/JSONDescriptor.h index f4269c781..2a638915b 100644 --- a/Descriptors/JSONDescriptor.h +++ b/Descriptors/JSONDescriptor.h @@ -350,7 +350,7 @@ template class JSONDescriptor : public BaseDescriptor(round(bearing_value))); route_segments_list.emplace_back( - segment.name_id, static_cast(segment.length), route_segments_list.size()); + segment.name_id, static_cast(segment.length), static_cast(route_segments_list.size())); json_instruction_array.values.push_back(json_instruction_row); } }