Commit 9e635cf3 authored by Brett Cannon's avatar Brett Cannon

Put parentheses around the assignment in the 'while' loop conditional

expression in min_max() to shut gcc up.
parent 25946dda
...@@ -1139,7 +1139,7 @@ min_max(PyObject *args, PyObject *kwds, int op) ...@@ -1139,7 +1139,7 @@ min_max(PyObject *args, PyObject *kwds, int op)
maxitem = NULL; /* the result */ maxitem = NULL; /* the result */
maxval = NULL; /* the value associated with the result */ maxval = NULL; /* the value associated with the result */
while (item = PyIter_Next(it)) { while (( item = PyIter_Next(it) )) {
/* get the value from the key function */ /* get the value from the key function */
if (keyfunc != NULL) { if (keyfunc != NULL) {
val = PyObject_CallFunctionObjArgs(keyfunc, item, NULL); val = PyObject_CallFunctionObjArgs(keyfunc, item, NULL);
......
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