Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion btree.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ int btree_node_is_full(struct btree_node *n) {
* Note: this function does not change the position of the children as it
* is intented to be used only on leafs. */
void btree_node_insert_key_at(struct btree_node *n, int i, unsigned char *key, uint64_t valoff) {
void *p;
char *p;

p = n->keys + (i*BTREE_HASHED_KEY_LEN);
memmove(p+BTREE_HASHED_KEY_LEN,p,(n->numkeys-i)*BTREE_HASHED_KEY_LEN);
Expand Down