fix - use std::size_t to avoid narrowing
This commit is contained in:
parent
6c14ff9b7a
commit
433741877d
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue