Show More
@@ -1091,9 +1091,10 b' static PyObject *nt_insert_py(nodetree *' | |||
|
1091 | 1091 | { |
|
1092 | 1092 | Py_ssize_t rev; |
|
1093 | 1093 | const char *node; |
|
1094 | Py_ssize_t length; | |
|
1094 | 1095 | if (!PyArg_ParseTuple(args, "n", &rev)) |
|
1095 | 1096 | return NULL; |
|
1096 |
|
|
|
1097 | length = index_length(self->index); | |
|
1097 | 1098 | if (rev < 0 || rev >= length) { |
|
1098 | 1099 | PyErr_SetString(PyExc_ValueError, "revlog index out of range"); |
|
1099 | 1100 | return NULL; |
General Comments 0
You need to be logged in to leave comments.
Login now