diff Modules/itertoolsmodule.c @ 31909:6b236994684a legacy-trunk

Change two instance of format strings for PyString_FromFormat() to use %ld instead of %d .
author Brett Cannon <bcannon@gmail.com>
date Tue, 13 Apr 2004 02:43:53 +0000
parents 848bce2215d3
children 544f2172363d
line wrap: on
line diff
--- a/Modules/itertoolsmodule.c	Mon Apr 12 18:10:01 2004 +0000
+++ b/Modules/itertoolsmodule.c	Tue Apr 13 02:43:53 2004 +0000
@@ -2054,7 +2054,7 @@
 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 @@
 		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;