osrm-backend/algorithms
Daniel J. Hofmann 980e4ee89a Don't mix signed and unsigned in comparisons as signed is converted first to unsigned.
This is true:

    -1 > 1u

because the integer literal `-1` is first converted to a large unsigned
value and then compared to the unsigned `1`.

This patch fixes several of those isses in the farthest insertion
algorithm.

`-Wsign-compare` catches those issues.

References:

- http://stackoverflow.com/a/5416498
- C++14 standard
2015-09-02 16:33:03 +02:00
..
bayes_classifier.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
bfs_components.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
coordinate_calculation.cpp Move calculate_coordinate to algorithms/ 2015-08-12 13:02:18 +02:00
coordinate_calculation.hpp Move calculate_coordinate to algorithms/ 2015-08-12 13:02:18 +02:00
crc32_processor.hpp activate __get_cpuid on all non X64 platform, fixes #1193 2015-04-07 14:45:21 +02:00
douglas_peucker.cpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
douglas_peucker.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
graph_compressor.cpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
graph_compressor.hpp Modernize the code base to C++11 standards and beyond. 2015-08-18 12:56:34 +02:00
object_encoder.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
polyline_compressor.cpp updated to 1E6 based polyline format 2015-06-02 13:15:31 +02:00
polyline_compressor.hpp made geometry_string a const reference 2015-06-02 13:06:06 +02:00
polyline_formatter.cpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
polyline_formatter.hpp change copyright line from personal names to project 2015-02-19 09:19:51 +01:00
route_name_extraction.hpp - output only get escaped when actually output. Better seperation of functionality 2015-02-26 10:11:33 +01:00
tarjan_scc.hpp add missing include and clang-format 2015-09-01 15:20:35 +02:00
trip_brute_force.hpp add missing include and clang-format 2015-09-01 15:20:35 +02:00
trip_farthest_insertion.hpp Don't mix signed and unsigned in comparisons as signed is converted first to unsigned. 2015-09-02 16:33:03 +02:00
trip_nearest_neighbour.hpp fix some small issues: 2015-09-01 15:20:35 +02:00
trip_tabu_search.hpp fix some small issues: 2015-09-01 15:20:35 +02:00