# 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 --git a/mercurial/mpatch.c b/mercurial/mpatch.c --- a/mercurial/mpatch.c +++ b/mercurial/mpatch.c @@ -311,8 +311,7 @@ static int apply(char *buf, const char * /* 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 @@ patches(PyObject *self, PyObject *args) 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;