From: Brett Cannon Date: Tue, 7 Dec 2004 00:25:35 +0000 (+0000) Subject: Put parentheses around the assignment in the 'while' loop conditional X-Git-Tag: v2.5a0~2286 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e635cf3ae1d912dc32d3ff2d5ebc529c92bf389;p=thirdparty%2FPython%2Fcpython.git Put parentheses around the assignment in the 'while' loop conditional expression in min_max() to shut gcc up. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index e189952b49db..33b5ca5e46a3 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -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);