diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c --- a/mercurial/cext/revlog.c +++ b/mercurial/cext/revlog.c @@ -7,6 +7,7 @@ the GNU General Public License, incorporated herein by reference. */ +#define PY_SSIZE_T_CLEAN #include #include #include @@ -1947,7 +1948,7 @@ static PyObject *index_partialmatch(indexObject *self, PyObject *args) { const char *fullnode; - int nodelen; + Py_ssize_t nodelen; char *node; int rev, i;