From d9bc3dbb814d45d9343ad1137807b8c36b03cb56 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 3 Nov 2013 15:36:03 -0800 Subject: [PATCH] fix -Wsign-conversion warnings --- include/mapnik/global.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mapnik/global.hpp b/include/mapnik/global.hpp index f4e200da8..6a157cf7d 100644 --- a/include/mapnik/global.hpp +++ b/include/mapnik/global.hpp @@ -120,7 +120,7 @@ inline void read_double_ndr(const char* data, double & val) inline void read_int16_xdr(const char* data, boost::int16_t & val) { #ifndef MAPNIK_BIG_ENDIAN - val = (data[3]&0xff) | ((data[2]&0xff)<<8); + val = static_cast((data[3]&0xff) | ((data[2]&0xff)<<8)); #else std::memcpy(&val,data,2); #endif