build fixes on GCC
This commit is contained in:
parent
8dc7afed4e
commit
e706fb973f
@ -200,8 +200,8 @@ void ExtractionContainers::PrepareData(const std::string &output_file_name,
|
||||
restrictions_iterator->restriction.toNode = way_start_and_end_iterator->firstStart;
|
||||
}
|
||||
|
||||
if (std::numeric_limits<unsigned::max> != restrictions_iterator->restriction.fromNode &&
|
||||
std::numeric_limits<unsigned::max> != restrictions_iterator->restriction.toNode)
|
||||
if (std::numeric_limits<unsigned>::max() != restrictions_iterator->restriction.fromNode &&
|
||||
std::numeric_limits<unsigned>::max() != restrictions_iterator->restriction.toNode)
|
||||
{
|
||||
++number_of_useable_restrictions;
|
||||
}
|
||||
@ -221,8 +221,8 @@ void ExtractionContainers::PrepareData(const std::string &output_file_name,
|
||||
restrictions_iterator != restrictions_list.end();
|
||||
++restrictions_iterator)
|
||||
{
|
||||
if (std::numeric_limits<unsigned::max> != restrictions_iterator->restriction.fromNode &&
|
||||
std::numeric_limits<unsigned::max> != restrictions_iterator->restriction.toNode)
|
||||
if (std::numeric_limits<unsigned>::max() != restrictions_iterator->restriction.fromNode &&
|
||||
std::numeric_limits<unsigned>::max() != restrictions_iterator->restriction.toNode)
|
||||
{
|
||||
restrictions_out_stream.write((char *)&(restrictions_iterator->restriction),
|
||||
sizeof(TurnRestriction));
|
||||
|
@ -35,6 +35,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <osrm/Coordinate.h>
|
||||
|
||||
#include <limits>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
@ -64,7 +65,7 @@ void ExtractorCallbacks::ProcessWay(ExtractionWay &parsed_way)
|
||||
{
|
||||
if ((0 < parsed_way.speed) || (0 < parsed_way.duration))
|
||||
{ // Only true if the way is specified by the speed profile
|
||||
if (UINT_MAX == parsed_way.id)
|
||||
if (std::numeric_limits<unsigned>::max() == parsed_way.id)
|
||||
{
|
||||
SimpleLogger().Write(logDEBUG) << "found bogus way with id: " << parsed_way.id
|
||||
<< " of size " << parsed_way.path.size();
|
||||
|
Loading…
Reference in New Issue
Block a user