Commit 2e9a9e01 authored by Stefan Behnel's avatar Stefan Behnel

get rid of C compiler warning

parent bede4102
...@@ -502,7 +502,7 @@ static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value) { ...@@ -502,7 +502,7 @@ static CYTHON_INLINE PyObject* {{TO_PY_FUNCTION}}({{TYPE}} value) {
func_type value = func_value; \ func_type value = func_value; \
if (sizeof(target_type) < sizeof(func_type)) { \ if (sizeof(target_type) < sizeof(func_type)) { \
if (unlikely(value != (func_type) (target_type) value)) { \ if (unlikely(value != (func_type) (target_type) value)) { \
const func_type zero = 0; \ func_type zero = 0; \
if (is_unsigned && unlikely(value < zero)) \ if (is_unsigned && unlikely(value < zero)) \
goto raise_neg_overflow; \ goto raise_neg_overflow; \
else \ else \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment