mercurial/cext/revlog.c
changeset 39225 fcaffbd7e635
parent 39219 f85b25608252
child 39226 7a759ad2d06d
equal deleted inserted replaced
39224:5e52b6da9c0c 39225:fcaffbd7e635
  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