]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change two instance of format strings for PyString_FromFormat() to use %ld
authorBrett Cannon <bcannon@gmail.com>
Tue, 13 Apr 2004 02:43:53 +0000 (02:43 +0000)
committerBrett Cannon <bcannon@gmail.com>
Tue, 13 Apr 2004 02:43:53 +0000 (02:43 +0000)
instead of %d .

Modules/itertoolsmodule.c

index 3445dccb4a764c33c38c852426c061932b474b3a..4ce46430df412323e82fca59b194166201fe0348 100644 (file)
@@ -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;