mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix building on py2
This commit is contained in:
parent
e4c763d23e
commit
66eebb954d
@ -139,7 +139,7 @@ convert_w_array(const PdfArray &w) {
|
|||||||
#define py_as_long_long PyLong_AsLongLong
|
#define py_as_long_long PyLong_AsLongLong
|
||||||
#else
|
#else
|
||||||
static inline long long
|
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);
|
if (PyInt_Check(x)) return PyInt_AS_LONG(x);
|
||||||
return PyLong_AsLongLong(x);
|
return PyLong_AsLongLong(x);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user