summaryrefslogtreecommitdiffstats
path: root/Modules/itertoolsmodule.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-04-13 02:43:53 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-04-13 02:43:53 (GMT)
commit0046839dd2ba66008749db724366f56c30ce25e9 (patch)
tree67fb640303efb3c2cd102654a49cc5b2ae816d22 /Modules/itertoolsmodule.c
parent7892b1c651d72a5bd08372f40309dec08a7065f0 (diff)
downloadcpython-0046839dd2ba66008749db724366f56c30ce25e9.zip
cpython-0046839dd2ba66008749db724366f56c30ce25e9.tar.gz
cpython-0046839dd2ba66008749db724366f56c30ce25e9.tar.bz2
Change two instance of format strings for PyString_FromFormat() to use %ld
instead of %d .
Diffstat (limited to 'Modules/itertoolsmodule.c')
-rw-r--r--Modules/itertoolsmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 3445dcc..4ce4643 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -2054,7 +2054,7 @@ count_next(countobject *lz)
static PyObject *
count_repr(countobject *lz)
{
- return PyString_FromFormat("count(%d)", lz->cnt);
+ return PyString_FromFormat("count(%ld)", lz->cnt);
}
PyDoc_STRVAR(count_doc,
@@ -2374,7 +2374,7 @@ repeat_repr(repeatobject *ro)
result = PyString_FromFormat("repeat(%s)",
PyString_AS_STRING(objrepr));
else
- result = PyString_FromFormat("repeat(%s, %d)",
+ result = PyString_FromFormat("repeat(%s, %ld)",
PyString_AS_STRING(objrepr), ro->cnt);
Py_DECREF(objrepr);
return result;