fix - use std::size_t to avoid narrowing

This commit is contained in:
artemp 2015-05-20 11:31:41 +01:00
parent 6c14ff9b7a
commit 433741877d
2 changed files with 4 additions and 4 deletions

View file

@ -60,7 +60,7 @@ class MAPNIK_DECL geometry_utils : private util::noncopyable
public: public:
static mapnik::geometry::geometry<double> from_wkb(const char* wkb, static mapnik::geometry::geometry<double> from_wkb(const char* wkb,
unsigned size, std::size_t size,
wkbFormat format = wkbGeneric); wkbFormat format = wkbGeneric);
}; };

View file

@ -404,7 +404,7 @@ private:
}; };
mapnik::geometry::geometry<double> geometry_utils::from_wkb(const char* wkb, mapnik::geometry::geometry<double> geometry_utils::from_wkb(const char* wkb,
unsigned size, std::size_t size,
wkbFormat format) wkbFormat format)
{ {
wkb_reader reader(wkb, size, format); wkb_reader reader(wkb, size, format);