[Python-checkins] python/dist/src/Modules itertoolsmodule.c, 1.31,
1.32
bcannon at users.sourceforge.net
bcannon at users.sourceforge.net
Mon Apr 12 22:43:56 EDT 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16820/Modules
Modified Files:
itertoolsmodule.c
Log Message:
Change two instance of format strings for PyString_FromFormat() to use %ld
instead of %d .
Index: itertoolsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/itertoolsmodule.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** itertoolsmodule.c 8 Apr 2004 21:54:00 -0000 1.31
--- itertoolsmodule.c 13 Apr 2004 02:43:53 -0000 1.32
***************
*** 2055,2059 ****
count_repr(countobject *lz)
{
! return PyString_FromFormat("count(%d)", lz->cnt);
}
--- 2055,2059 ----
count_repr(countobject *lz)
{
! return PyString_FromFormat("count(%ld)", lz->cnt);
}
***************
*** 2375,2379 ****
PyString_AS_STRING(objrepr));
else
! result = PyString_FromFormat("repeat(%s, %d)",
PyString_AS_STRING(objrepr), ro->cnt);
Py_DECREF(objrepr);
--- 2375,2379 ----
PyString_AS_STRING(objrepr));
else
! result = PyString_FromFormat("repeat(%s, %ld)",
PyString_AS_STRING(objrepr), ro->cnt);
Py_DECREF(objrepr);
More information about the Python-checkins
mailing list