[Python-checkins] python/dist/src/Python bltinmodule.c,2.319,2.320
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Tue Dec 7 01:25:39 CET 2004
Update of /cvsroot/python/python/dist/src/Python
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3424/Python
Modified Files:
bltinmodule.c
Log Message:
Put parentheses around the assignment in the 'while' loop conditional
expression in min_max() to shut gcc up.
Index: bltinmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/bltinmodule.c,v
retrieving revision 2.319
retrieving revision 2.320
diff -u -d -r2.319 -r2.320
--- bltinmodule.c 3 Dec 2004 08:30:39 -0000 2.319
+++ bltinmodule.c 7 Dec 2004 00:25:35 -0000 2.320
@@ -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);
More information about the Python-checkins
mailing list