Permalink
Browse files

Fixing signed/unsigned comparisons

  • Loading branch information...
1 parent cba3c46 commit bf94866ec05adc4bd5363253d90189071e690c0d DennisOSRM committed Dec 23, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 Plugins/RouteParameters.h
  2. +1 −1 Server/ServerFactory.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;
}
View
@@ -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") == "")

0 comments on commit bf94866

Please sign in to comment.