changeset 5458:cd1a6e7216c5

mpatch: use int rather than ssize_t We might need to be more clever than this to make Py2.5 happy.
author Matt Mackall <mpm@selenic.com>
date Thu, 11 Oct 2007 17:47:04 -0500
parents 7372b6bbc5e6
children fe9b0bb3eb1c
files mercurial/mpatch.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;