Show More
@@ -1312,7 +1312,7 b' static int nt_find(indexObject *self, co' | |||
|
1312 | 1312 | const char *n; |
|
1313 | 1313 | Py_ssize_t i; |
|
1314 | 1314 | |
|
1315 |
v = -v |
|
|
1315 | v = -(v + 1); | |
|
1316 | 1316 | n = index_node(self, v); |
|
1317 | 1317 | if (n == NULL) |
|
1318 | 1318 | return -2; |
@@ -1368,7 +1368,7 b' static int nt_insert(indexObject *self, ' | |||
|
1368 | 1368 | return 0; |
|
1369 | 1369 | } |
|
1370 | 1370 | if (v < 0) { |
|
1371 |
const char *oldnode = index_node(self, -v |
|
|
1371 | const char *oldnode = index_node(self, -(v + 1)); | |
|
1372 | 1372 | int noff; |
|
1373 | 1373 | |
|
1374 | 1374 | if (!oldnode || !memcmp(oldnode, node, 20)) { |
General Comments 0
You need to be logged in to leave comments.
Login now