+ call Py_RETURN_NONE macro to properly handle returning Py_None
(http://docs.python.org/c-api/none.html) - thanks, @lightmare!
This commit is contained in:
parent
9da9ffadc1
commit
7cfdfde247
2 changed files with 3 additions and 3 deletions
|
@ -105,7 +105,7 @@ PyObject* to_wkb( geometry_type const& geom, mapnik::util::wkbByteOrder byte_ord
|
|||
}
|
||||
else
|
||||
{
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
@ -133,7 +133,7 @@ PyObject* to_wkb2( path_type const& p, mapnik::util::wkbByteOrder byte_order)
|
|||
}
|
||||
else
|
||||
{
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
|
|
@ -91,7 +91,7 @@ PyObject* get_fill_opacity_impl(markers_symbolizer & sym)
|
|||
boost::optional<float> fill_opacity = sym.get_fill_opacity();
|
||||
if (fill_opacity)
|
||||
return ::PyFloat_FromDouble(*fill_opacity);
|
||||
return Py_None;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
void export_markers_symbolizer()
|
||||
|
|
Loading…
Reference in a new issue