fix unsigned PY_LONG_LONG type converter function
authorLisandro Dalcin <dalcinl@gmail.com>
Fri, 6 Feb 2009 15:15:23 +0000 (13:15 -0200)
committerLisandro Dalcin <dalcinl@gmail.com>
Fri, 6 Feb 2009 15:15:23 +0000 (13:15 -0200)
Cython/Compiler/PyrexTypes.py

index 15b8fa3e69c49573f57643fd9fabef322e0dd7c6..aa48d03a3253350051f591640931ebf8c370c1c9 100644 (file)
@@ -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);