Actually fix unsigned < 0 warning.
authorRobert Bradshaw <robertwb@math.washington.edu>
Sun, 22 Sep 2013 04:55:42 +0000 (21:55 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Sun, 22 Sep 2013 04:55:42 +0000 (21:55 -0700)
Cython/Utility/TypeConversion.c

index c4018a2..67c4894 100644 (file)
@@ -455,7 +455,7 @@ static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value) {
         func_type value = func(x);                                        \
         if (sizeof(target_type) < sizeof(func_type)) {                    \
             if (unlikely(value != (func_type) (target_type) value)) {     \
-                const func_type zero = 0;                                 \
+                func_type zero = 0;                                       \
                 PyErr_SetString(PyExc_OverflowError,                      \
                     (is_unsigned && unlikely(value < zero)) ?             \
                     "can't convert negative value to " #target_type :     \