equal
deleted
inserted
replaced
1093 return nt_insert(self, node, -2); |
1093 return nt_insert(self, node, -2); |
1094 } |
1094 } |
1095 |
1095 |
1096 static int nt_init(nodetree *self, indexObject *index, unsigned capacity) |
1096 static int nt_init(nodetree *self, indexObject *index, unsigned capacity) |
1097 { |
1097 { |
1098 /* Initialize before argument-checking to avoid nt_dealloc() crash. */ |
1098 /* Initialize before overflow-checking to avoid nt_dealloc() crash. */ |
1099 self->nodes = NULL; |
1099 self->nodes = NULL; |
1100 |
1100 |
1101 self->index = index; |
1101 self->index = index; |
1102 Py_INCREF(index); |
1102 Py_INCREF(index); |
1103 /* The input capacity is in terms of revisions, while the field is in |
1103 /* The input capacity is in terms of revisions, while the field is in |