From 9b340a507b7c7b3639c75f6d18879b1654292773 Mon Sep 17 00:00:00 2001 From: DennisOSRM Date: Wed, 7 Mar 2012 08:30:51 +0100 Subject: [PATCH] checksum is unsigned not signed --- Plugins/RawRouteData.h | 2 +- Plugins/ViaRoutePlugin.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugins/RawRouteData.h b/Plugins/RawRouteData.h index 18e210297..4a6f53a43 100644 --- a/Plugins/RawRouteData.h +++ b/Plugins/RawRouteData.h @@ -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_ */ diff --git a/Plugins/ViaRoutePlugin.h b/Plugins/ViaRoutePlugin.h index 9f7ad8ba1..34f5b0fbc 100644 --- a/Plugins/ViaRoutePlugin.h +++ b/Plugins/ViaRoutePlugin.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 textCoord;