From c63179e09424bd549e7d0b505e8c5af2bf0f1a20 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sat, 21 Sep 2013 21:55:42 -0700 Subject: [PATCH] Actually fix unsigned < 0 warning. --- Cython/Utility/TypeConversion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Utility/TypeConversion.c b/Cython/Utility/TypeConversion.c index c4018a2..67c4894 100644 --- a/Cython/Utility/TypeConversion.c +++ b/Cython/Utility/TypeConversion.c @@ -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 : \ -- 2.7.4