fix gcc 2.95 compile issue
authorStefan Behnel <scoder@users.berlios.de>
Fri, 1 Feb 2008 13:30:17 +0000 (14:30 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 1 Feb 2008 13:30:17 +0000 (14:30 +0100)
Cython/Compiler/PyrexTypes.py

index 476a2336d186d926e17e7111262c5bb7eb4bffbd..4bd1db1c8b5427cb059178dbebee4c4e8ebbc750 100644 (file)
@@ -1081,8 +1081,9 @@ static INLINE PY_LONG_LONG __pyx_PyInt_AsLongLong(PyObject* x) {
         return PyLong_AsLongLong(x);
     }
     else {
+        PY_LONG_LONG val;
         PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
-        PY_LONG_LONG val = __pyx_PyInt_AsLongLong(tmp);
+        val = __pyx_PyInt_AsLongLong(tmp);
         Py_DECREF(tmp);
         return val;
     }
@@ -1101,8 +1102,9 @@ static INLINE unsigned PY_LONG_LONG __pyx_PyInt_AsUnsignedLongLong(PyObject* x)
         return PyLong_AsUnsignedLongLong(x);
     }
     else {
+        PY_LONG_LONG val;
         PyObject* tmp = PyNumber_Int(x); if (!tmp) return (PY_LONG_LONG)-1;
-        PY_LONG_LONG val = __pyx_PyInt_AsUnsignedLongLong(tmp);
+        val = __pyx_PyInt_AsUnsignedLongLong(tmp);
         Py_DECREF(tmp);
         return val;
     }