From: Robert Bradshaw Date: Sun, 22 Sep 2013 03:59:50 +0000 (-0700) Subject: Get rid of "comparison between signed and unsigned" warning. X-Git-Tag: 0.20b1~315 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1691f2b478217d7ebc56aa70152e26b9a9024a8d;p=platform%2Fupstream%2Fpython-cython.git Get rid of "comparison between signed and unsigned" warning. --- diff --git a/Cython/Utility/TypeConversion.c b/Cython/Utility/TypeConversion.c index b937e2b..eba0a6a 100644 --- a/Cython/Utility/TypeConversion.c +++ b/Cython/Utility/TypeConversion.c @@ -454,7 +454,7 @@ static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value) { { \ value_type value = func(x); \ if (sizeof(type) < sizeof(value_type)) { \ - if (unlikely(value != (type) value)) { \ + if (unlikely(value != (value_type) (type) value)) { \ PyErr_SetString(PyExc_OverflowError, \ (is_unsigned && unlikely(value < 0)) ? \ "can't convert negative value to " #type : \