From: Robert Bradshaw Date: Sun, 22 Sep 2013 04:55:42 +0000 (-0700) Subject: Actually fix unsigned < 0 warning. X-Git-Tag: 0.20b1~312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c63179e09424bd549e7d0b505e8c5af2bf0f1a20;p=platform%2Fupstream%2Fpython-cython.git Actually fix unsigned < 0 warning. --- 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 : \