diff --git a/mercurial/cext/revlog.c b/mercurial/cext/revlog.c --- a/mercurial/cext/revlog.c +++ b/mercurial/cext/revlog.c @@ -491,7 +491,7 @@ static PyObject *index_pack_header(index { int header; char out[4]; - if (!PyArg_ParseTuple(args, "I", &header)) { + if (!PyArg_ParseTuple(args, "i", &header)) { return NULL; } if (self->format_version != format_v1) {