Mercurial > hg
changeset 39227:42cc76d0f836
cext: fix revlog compiler error on Windows
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 21 Aug 2018 20:57:58 -0400 |
parents | 7a759ad2d06d |
children | 66f046116105 |
files | mercurial/cext/revlog.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cext/revlog.c Sun Aug 05 00:42:07 2018 -0700 +++ b/mercurial/cext/revlog.c Tue Aug 21 20:57:58 2018 -0400 @@ -1091,9 +1091,10 @@ { Py_ssize_t rev; const char *node; + Py_ssize_t length; if (!PyArg_ParseTuple(args, "n", &rev)) return NULL; - const Py_ssize_t length = index_length(self->index); + length = index_length(self->index); if (rev < 0 || rev >= length) { PyErr_SetString(PyExc_ValueError, "revlog index out of range"); return NULL;