Avoid truncating 64 bit return values on 32 bit platforms

This commit is contained in:
Tom Hughes 2013-07-10 00:27:57 +01:00
parent 4bc28d547b
commit a93832cbff

View file

@ -35,11 +35,7 @@ namespace boost { namespace python {
{
PyObject * operator() (mapnik::value_integer val) const
{
#if PY_VERSION_HEX >= 0x03000000
return ::PyLong_FromLong(val);
#else
return ::PyInt_FromLong(val);
#endif
return ::PyLong_FromLongLong(val);
}
PyObject * operator() (double val) const