author | Matt Harbison <matt_harbison@yahoo.com> |
Tue, 21 Aug 2018 20:57:58 -0400 | |
changeset 39255 | 42cc76d0f836 |
parent 39254 | 7a759ad2d06d |
child 39256 | 66f046116105 |
--- 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;