Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e635cf

Browse files
committed
Put parentheses around the assignment in the 'while' loop conditional
expression in min_max() to shut gcc up.
1 parent 25946dd commit 9e635cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/bltinmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ min_max(PyObject *args, PyObject *kwds, int op)
11391139

11401140
maxitem = NULL; /* the result */
11411141
maxval = NULL; /* the value associated with the result */
1142-
while (item = PyIter_Next(it)) {
1142+
while (( item = PyIter_Next(it) )) {
11431143
/* get the value from the key function */
11441144
if (keyfunc != NULL) {
11451145
val = PyObject_CallFunctionObjArgs(keyfunc, item, NULL);

0 commit comments

Comments
 (0)