checksum is unsigned not signed
This commit is contained in:
parent
0465753bdf
commit
9b340a507b
@ -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_ */
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user