Fixing signed/unsigned comparisons

This commit is contained in:
DennisOSRM 2012-12-23 19:34:26 +01:00
parent cba3c46820
commit bf94866ec0
2 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ struct RouteParameters {
bool geometry; bool geometry;
bool compression; bool compression;
bool deprecatedAPI; bool deprecatedAPI;
int checkSum; unsigned checkSum;
std::string service; std::string service;
std::string outputFormat; std::string outputFormat;
std::string jsonpParameter; std::string jsonpParameter;
@ -58,7 +58,7 @@ struct RouteParameters {
deprecatedAPI = true; deprecatedAPI = true;
} }
void setChecksum(const int c) { void setChecksum(const unsigned c) {
checkSum = c; checkSum = c;
} }

View File

@ -61,7 +61,7 @@ struct ServerFactory {
ERR("file index file not found"); ERR("file index file not found");
} }
unsigned threads = omp_get_num_procs(); int threads = omp_get_num_procs();
if(serverConfig.GetParameter("IP") == "") if(serverConfig.GetParameter("IP") == "")
serverConfig.SetParameter("IP", "0.0.0.0"); serverConfig.SetParameter("IP", "0.0.0.0");
if(serverConfig.GetParameter("Port") == "") if(serverConfig.GetParameter("Port") == "")