checksum is unsigned not signed

This commit is contained in:
DennisOSRM 2012-03-07 08:30:51 +01:00
parent 0465753bdf
commit 9b340a507b
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@ struct RawRouteData {
std::vector< _PathData > computedRouted;
std::vector< PhantomNodes > segmentEndCoordinates;
std::vector< _Coordinate > rawViaNodeCoordinates;
int checkSum;
unsigned checkSum;
};
#endif /* RAWROUTEDATA_H_ */

View File

@ -83,9 +83,9 @@ public:
RawRouteData rawRoute;
rawRoute.checkSum = nodeHelpDesk->GetCheckSum();
checksumOK = (atoi(routeParameters.options.Find("checksum").c_str()) == rawRoute.checkSum);
checksumOK = ((unsigned)atoi(routeParameters.options.Find("checksum").c_str()) == rawRoute.checkSum);
if(!checksumOK) {
INFO(atoi(routeParameters.options.Find("checksum").c_str()) << "!=" << rawRoute.checkSum);
INFO((unsigned)atoi(routeParameters.options.Find("checksum").c_str()) << "!=" << rawRoute.checkSum);
INFO("mismatching checksum");
}
std::vector<std::string> textCoord;