Search / Sort
This commit is contained in:
@@ -71,7 +71,7 @@ static c_err_t c_RedBlackBST_InternalPut(c_RedBlackBST_t* self, c_RBBSTNode_t**
|
||||
|
||||
// 递归基:开辟挂载新节点,新生成的链接默认为极其活跃的【红链接】
|
||||
if (curr == NULL) {
|
||||
c_RBBSTNode_t* new_node = (c_RBBSTNode_t*)c_Allocator_Alloc(&self->allocator, sizeof(c_RBBSTNode_t));
|
||||
c_RBBSTNode_t* new_node = (c_RBBSTNode_t*)c_Allocator_Alloc(&self->allocator, sizeof(*new_node));
|
||||
void* new_key = c_Allocator_Alloc(&self->allocator, self->key_size);
|
||||
void* new_val = c_Allocator_Alloc(&self->allocator, self->val_size);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user