# HG changeset patch # User Matt Mackall # Date 1192142824 18000 # Node ID cd1a6e7216c5f255a1e49d507b61326dacfcd532 # Parent 7372b6bbc5e6193a08b22529c885937d98603756 mpatch: use int rather than ssize_t We might need to be more clever than this to make Py2.5 happy. diff -r 7372b6bbc5e6 -r cd1a6e7216c5 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;