From e97f667e94e1ebf0e9ddccd66995b7aa4a7ea216 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 27 Feb 2009 08:32:15 +0100 Subject: [PATCH] fix GCC warnings --- Cython/Compiler/ExprNodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index e354c797..0ad0b60d 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -5450,7 +5450,7 @@ setitem_int_utility_code = UtilityCode( proto = """ static INLINE int __Pyx_SetItemInt(PyObject *o, Py_ssize_t i, PyObject *v, int is_unsigned) { int r; - if (PyList_CheckExact(o) && (0 <= i & i < PyList_GET_SIZE(o))) { + if (PyList_CheckExact(o) && ((0 <= i) & (i < PyList_GET_SIZE(o)))) { Py_DECREF(PyList_GET_ITEM(o, i)); Py_INCREF(v); PyList_SET_ITEM(o, i, v); -- 2.26.2