From 6893df91037d840486ee5cd1fdc6fb13185cbd7d Mon Sep 17 00:00:00 2001 From: Dennis Luxen Date: Wed, 2 Oct 2013 11:38:09 +0200 Subject: [PATCH] replacing c-style numeric limits with proper C++ style --- DataStructures/StaticRTree.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DataStructures/StaticRTree.h b/DataStructures/StaticRTree.h index a90414a24..60629ac06 100644 --- a/DataStructures/StaticRTree.h +++ b/DataStructures/StaticRTree.h @@ -599,8 +599,8 @@ public: ) { bool ignore_tiny_components = (zoom_level <= 14); DataT nearest_edge; - double min_dist = DBL_MAX; - double min_max_dist = DBL_MAX; + double min_dist = std::numeric_limits::max(); + double min_max_dist = std::numeric_limits::max(); bool found_a_nearest_edge = false; //initialize queue with root element @@ -711,8 +711,8 @@ public: uint32_t io_count = 0; uint32_t explored_tree_nodes_count = 0; //SimpleLogger().Write() << "searching for coordinate " << input_coordinate; - double min_dist = DBL_MAX; - double min_max_dist = DBL_MAX; + double min_dist = std::numeric_limits::max(); + double min_max_dist = std::numeric_limits::max(); bool found_a_nearest_edge = false; FixedPointCoordinate nearest, current_start_coordinate, current_end_coordinate;