Show More
@@ -387,7 +387,7 b' static const char *index_node(indexObjec' | |||||
387 | Py_ssize_t length = index_length(self); |
|
387 | Py_ssize_t length = index_length(self); | |
388 | const char *data; |
|
388 | const char *data; | |
389 |
|
389 | |||
390 | if (pos == length - 1) |
|
390 | if (pos == length - 1 || pos == INT_MAX) | |
391 | return nullid; |
|
391 | return nullid; | |
392 |
|
392 | |||
393 | if (pos >= length) |
|
393 | if (pos >= length) | |
@@ -671,6 +671,8 b' static int nt_init(indexObject *self)' | |||||
671 | self->ntrev = (int)index_length(self) - 1; |
|
671 | self->ntrev = (int)index_length(self) - 1; | |
672 | self->ntlookups = 1; |
|
672 | self->ntlookups = 1; | |
673 | self->ntmisses = 0; |
|
673 | self->ntmisses = 0; | |
|
674 | if (nt_insert(self, nullid, INT_MAX) == -1) | |||
|
675 | return -1; | |||
674 | } |
|
676 | } | |
675 | return 0; |
|
677 | return 0; | |
676 | } |
|
678 | } |
General Comments 0
You need to be logged in to leave comments.
Login now