From: Lisandro Dalcin Date: Fri, 6 Feb 2009 15:15:23 +0000 (-0200) Subject: fix unsigned PY_LONG_LONG type converter function X-Git-Tag: 0.11.rc~93^2~2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f1751da15192207965814dc5301ef6f5b4560614;p=cython.git fix unsigned PY_LONG_LONG type converter function --- diff --git a/Cython/Compiler/PyrexTypes.py b/Cython/Compiler/PyrexTypes.py index 15b8fa3e..aa48d03a 100644 --- a/Cython/Compiler/PyrexTypes.py +++ b/Cython/Compiler/PyrexTypes.py @@ -1437,7 +1437,7 @@ static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x) return PyLong_AsUnsignedLongLong(x); } else { - PY_LONG_LONG val; + unsigned PY_LONG_LONG val; PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1; val = __pyx_PyInt_AsUnsignedLongLong(tmp); Py_DECREF(tmp);