Avoid truncating 64 bit return values on 32 bit platforms
This commit is contained in:
parent
4bc28d547b
commit
a93832cbff
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue