mpatch: use int rather than ssize_t
authorMatt Mackall <mpm@selenic.com>
Thu, 11 Oct 2007 17:47:04 -0500
changeset 5458 cd1a6e7216c5
parent 5457 7372b6bbc5e6
child 5460 fe9b0bb3eb1c
mpatch: use int rather than ssize_t We might need to be more clever than this to make Py2.5 happy.
mercurial/mpatch.c
--- a/mercurial/mpatch.c	Thu Oct 11 17:46:06 2007 -0500
+++ b/mercurial/mpatch.c	Thu Oct 11 17:47:04 2007 -0500
@@ -311,8 +311,7 @@
 /* recursively generate a patch of all bins between start and end */
 static struct flist *fold(PyObject *bins, int start, int end)
 {
-	int len;
-	ssize_t blen;
+	int len, blen;
 	const char *buffer;
 
 	if (start + 1 == end) {
@@ -338,8 +337,7 @@
 	struct flist *patch;
 	const char *in;
 	char *out;
-	int len, outlen;
-	ssize_t inlen;
+	int len, inlen, outlen;
 
 	if (!PyArg_ParseTuple(args, "OO:mpatch", &text, &bins))
 		return NULL;