Fix building on py2

This commit is contained in:
Kovid Goyal 2019-07-30 19:46:51 +05:30
parent e4c763d23e
commit 66eebb954d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -139,7 +139,7 @@ convert_w_array(const PdfArray &w) {
#define py_as_long_long PyLong_AsLongLong
#else
static inline long long
py_as_long_long(const PyObject *x) {
py_as_long_long(PyObject *x) {
if (PyInt_Check(x)) return PyInt_AS_LONG(x);
return PyLong_AsLongLong(x);
}