Commit 6b2cb1d4 authored by Stefan Behnel's avatar Stefan Behnel

move C declaration before code

parent d0593323
...@@ -278,9 +278,10 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) { ...@@ -278,9 +278,10 @@ static CYTHON_INLINE PyObject* __Pyx_PyNumber_Int(PyObject* x) {
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) { static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
Py_ssize_t ival; Py_ssize_t ival;
PyObject *x;
if (likely(PyInt_CheckExact(b))) if (likely(PyInt_CheckExact(b)))
return PyInt_AsSsize_t(b); return PyInt_AsSsize_t(b);
PyObject* x = PyNumber_Index(b); x = PyNumber_Index(b);
if (!x) return -1; if (!x) return -1;
ival = PyInt_AsSsize_t(x); ival = PyInt_AsSsize_t(x);
Py_DECREF(x); Py_DECREF(x);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment