From bf94866ec05adc4bd5363253d90189071e690c0d Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Sun, 23 Dec 2012 19:34:26 +0100 Subject: [PATCH] Fixing signed/unsigned comparisons --- Plugins/RouteParameters.h | 4 ++-- Server/ServerFactory.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/RouteParameters.h b/Plugins/RouteParameters.h index 3ecbc10eac..a718f96309 100644 --- a/Plugins/RouteParameters.h +++ b/Plugins/RouteParameters.h @@ -36,7 +36,7 @@ struct RouteParameters { bool geometry; bool compression; bool deprecatedAPI; - int checkSum; + unsigned checkSum; std::string service; std::string outputFormat; std::string jsonpParameter; @@ -58,7 +58,7 @@ struct RouteParameters { deprecatedAPI = true; } - void setChecksum(const int c) { + void setChecksum(const unsigned c) { checkSum = c; } diff --git a/Server/ServerFactory.h b/Server/ServerFactory.h index 3a740569a3..966dc920f0 100644 --- a/Server/ServerFactory.h +++ b/Server/ServerFactory.h @@ -61,7 +61,7 @@ struct ServerFactory { ERR("file index file not found"); } - unsigned threads = omp_get_num_procs(); + int threads = omp_get_num_procs(); if(serverConfig.GetParameter("IP") == "") serverConfig.SetParameter("IP", "0.0.0.0"); if(serverConfig.GetParameter("Port") == "")