From 9e635cf3ae1d912dc32d3ff2d5ebc529c92bf389 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Tue, 7 Dec 2004 00:25:35 +0000 Subject: [PATCH] Put parentheses around the assignment in the 'while' loop conditional expression in min_max() to shut gcc up. --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index e189952b49..33b5ca5e46 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); -- 2.50.1