silence compiler warning about signed/unsigned comparison

This commit is contained in:
Dane Springmeyer 2012-02-13 11:01:16 -08:00
parent 043dba3786
commit 6b6d069f3e

View file

@ -134,7 +134,7 @@ mapnik::value_holder get_params_by_key2(mapnik::parameters const& p, std::string
mapnik::parameter get_params_by_index(mapnik::parameters const& p, int index)
{
if (index < 0 || index > p.size())
if (index < 0 || static_cast<unsigned>(index) > p.size())
{
PyErr_SetString(PyExc_IndexError, "Index is out of range");
throw boost::python::error_already_set();