Commit f1751da1 authored by Lisandro Dalcin's avatar Lisandro Dalcin

fix unsigned PY_LONG_LONG type converter function

parent 49b4a386
...@@ -1437,7 +1437,7 @@ static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x) ...@@ -1437,7 +1437,7 @@ static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x)
return PyLong_AsUnsignedLongLong(x); return PyLong_AsUnsignedLongLong(x);
} }
else { else {
PY_LONG_LONG val; unsigned PY_LONG_LONG val;
PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1; PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
val = __pyx_PyInt_AsUnsignedLongLong(tmp); val = __pyx_PyInt_AsUnsignedLongLong(tmp);
Py_DECREF(tmp); Py_DECREF(tmp);
......
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