projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbc131b
)
fix GCC warnings
author
Stefan Behnel
<scoder@users.berlios.de>
Fri, 27 Feb 2009 07:32:15 +0000
(08:32 +0100)
committer
Stefan Behnel
<scoder@users.berlios.de>
Fri, 27 Feb 2009 07:32:15 +0000
(08:32 +0100)
Cython/Compiler/ExprNodes.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/ExprNodes.py
b/Cython/Compiler/ExprNodes.py
index e354c797001edba03d8f6efd03b8edbf201c5280..0ad0b60dc127b602e25bce6a077f1bcd539913a0 100644
(file)
--- 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);