mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Put parentheses around the assignment in the 'while' loop conditional
expression in min_max() to shut gcc up.
This commit is contained in:
parent
25946ddac9
commit
9e635cf3ae
1 changed files with 1 additions and 1 deletions
|
@ -1139,7 +1139,7 @@ min_max(PyObject *args, PyObject *kwds, int op)
|
|||
|
||||
maxitem = NULL; /* 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 */
|
||||
if (keyfunc != NULL) {
|
||||
val = PyObject_CallFunctionObjArgs(keyfunc, item, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue