Skip to content

Commit

Permalink
fix issue 680
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Nov 11, 2024
1 parent ad487ef commit 2816221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/art/art.c
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ static art_val_t *art_find_at(const art_node_t *node,
}

// Returns the size in bytes of the subtrie.
size_t art_size_in_bytes_at(const art_node_t *node) {
static size_t art_size_in_bytes_at(const art_node_t *node) {
if (art_is_leaf(node)) {
return 0;
}
Expand Down Expand Up @@ -1372,7 +1372,7 @@ static void art_node_print_type(const art_node_t *node) {
}
}

void art_node_printf(const art_node_t *node, uint8_t depth) {
static void art_node_printf(const art_node_t *node, uint8_t depth) {
if (art_is_leaf(node)) {
printf("{ type: Leaf, key: ");
art_leaf_t *leaf = CROARING_CAST_LEAF(node);
Expand Down
13 changes: 0 additions & 13 deletions src/roaring64.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,19 +262,6 @@ roaring64_bitmap_t *roaring64_bitmap_of_ptr(size_t n_args,
return r;
}

roaring64_bitmap_t *roaring64_bitmap_of(size_t n_args, ...) {
roaring64_bitmap_t *r = roaring64_bitmap_create();
roaring64_bulk_context_t context = CROARING_ZERO_INITIALIZER;
va_list ap;
va_start(ap, n_args);
for (size_t i = 0; i < n_args; i++) {
uint64_t val = va_arg(ap, uint64_t);
roaring64_bitmap_add_bulk(r, &context, val);
}
va_end(ap);
return r;
}

static inline leaf_t *containerptr_roaring64_bitmap_add(roaring64_bitmap_t *r,
uint8_t *high48,
uint16_t low16,
Expand Down

0 comments on commit 2816221

Please sign in to comment.