From: Stefan Behnel Date: Fri, 27 Feb 2009 07:32:15 +0000 (+0100) Subject: fix GCC warnings X-Git-Tag: 0.11.rc~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e97f667e94e1ebf0e9ddccd66995b7aa4a7ea216;p=cython.git fix GCC warnings --- 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);