diff options
author | Brett Cannon <bcannon@gmail.com> | 2004-12-07 00:25:35 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2004-12-07 00:25:35 (GMT) |
commit | 9e635cf3ae1d912dc32d3ff2d5ebc529c92bf389 (patch) | |
tree | 842bb92a2e6452f23a17c1022c869ba92aed5973 | |
parent | 25946ddac90e2f69199af740cbaaa08beb13d9a9 (diff) | |
download | cpython-9e635cf3ae1d912dc32d3ff2d5ebc529c92bf389.zip cpython-9e635cf3ae1d912dc32d3ff2d5ebc529c92bf389.tar.gz cpython-9e635cf3ae1d912dc32d3ff2d5ebc529c92bf389.tar.bz2 |
Put parentheses around the assignment in the 'while' loop conditional
expression in min_max() to shut gcc up.
-rw-r--r-- | Python/bltinmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index e189952..33b5ca5 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); |