diff Python/bltinmodule.c @ 34123:4e8fb12f8378 legacy-trunk

Put parentheses around the assignment in the 'while' loop conditional expression in min_max() to shut gcc up.
author Brett Cannon <bcannon@gmail.com>
date Tue, 07 Dec 2004 00:25:35 +0000
parents cc9ce6837ea9
children 81b5a13fa38a
line wrap: on
line diff
--- a/Python/bltinmodule.c	Mon Dec 06 21:25:26 2004 +0000
+++ b/Python/bltinmodule.c	Tue Dec 07 00:25:35 2004 +0000
@@ -1139,7 +1139,7 @@
 
 	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);