Commit 0046839d authored by Brett Cannon's avatar Brett Cannon

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

instead of %d .
parent 7892b1c6
...@@ -2054,7 +2054,7 @@ count_next(countobject *lz) ...@@ -2054,7 +2054,7 @@ count_next(countobject *lz)
static PyObject * static PyObject *
count_repr(countobject *lz) count_repr(countobject *lz)
{ {
return PyString_FromFormat("count(%d)", lz->cnt); return PyString_FromFormat("count(%ld)", lz->cnt);
} }
PyDoc_STRVAR(count_doc, PyDoc_STRVAR(count_doc,
...@@ -2374,7 +2374,7 @@ repeat_repr(repeatobject *ro) ...@@ -2374,7 +2374,7 @@ repeat_repr(repeatobject *ro)
result = PyString_FromFormat("repeat(%s)", result = PyString_FromFormat("repeat(%s)",
PyString_AS_STRING(objrepr)); PyString_AS_STRING(objrepr));
else else
result = PyString_FromFormat("repeat(%s, %d)", result = PyString_FromFormat("repeat(%s, %ld)",
PyString_AS_STRING(objrepr), ro->cnt); PyString_AS_STRING(objrepr), ro->cnt);
Py_DECREF(objrepr); Py_DECREF(objrepr);
return result; return result;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment