From f1751da15192207965814dc5301ef6f5b4560614 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Fri, 6 Feb 2009 13:15:23 -0200 Subject: [PATCH] fix unsigned PY_LONG_LONG type converter function --- Cython/Compiler/PyrexTypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.26.2