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:
|
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);
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -404,8 +404,8 @@ 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);
|
||||||
mapnik::geometry::geometry<double> geom(reader.read());
|
mapnik::geometry::geometry<double> geom(reader.read());
|
||||||
|
|
Loading…
Reference in a new issue