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

View file

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