Change two instance of format strings for PyString_FromFormat() to use %ld

instead of %d .
This commit is contained in:
Brett Cannon 2004-04-13 02:43:53 +00:00
parent 7892b1c651
commit 0046839dd2
1 changed files with 2 additions and 2 deletions

View 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;