##// END OF EJS Templates
index: drop support for nullid at position len(index) in index_node...
Martin von Zweigbergk -
r38903:4c0fd3f0 default
parent child Browse files
Show More
@@ -228,10 +228,10 b' static const char *index_node(indexObjec'
228 Py_ssize_t length = index_length(self) + 1;
228 Py_ssize_t length = index_length(self) + 1;
229 const char *data;
229 const char *data;
230
230
231 if (pos == length - 1 || pos == -1)
231 if (pos == -1)
232 return nullid;
232 return nullid;
233
233
234 if (pos >= length)
234 if (pos >= length - 1)
235 return NULL;
235 return NULL;
236
236
237 if (pos >= self->length - 1) {
237 if (pos >= self->length - 1) {
General Comments 0
You need to be logged in to leave comments. Login now