Skip to content

Commit

Permalink
Bugfix in CRoaring
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezibenroc committed Jan 30, 2024
1 parent f06c25b commit 82e6d8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pyroaring/roaring.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// !!! DO NOT EDIT - THIS IS AN AUTO-GENERATED FILE !!!
// Created by amalgamation.sh on 2024-01-27T20:50:15Z
// Created by amalgamation.sh on 2024-01-30T20:46:02Z

/*
* The CRoaring project is under a dual license (Apache/MIT).
Expand Down Expand Up @@ -19355,7 +19355,7 @@ bool roaring64_bitmap_contains_range(const roaring64_bitmap_t *r, uint64_t min,
uint16_t min_low16 = split_key(min, min_high48);
uint8_t max_high48[ART_KEY_BYTES];
uint16_t max_low16 = split_key(max, max_high48);
uint64_t max_high48_bits = max & 0xFFFFFFFFFFFF0000;
uint64_t max_high48_bits = (max - 1) & 0xFFFFFFFFFFFF0000; // Inclusive

art_iterator_t it = art_lower_bound(&r->art, min_high48);
if (it.value == NULL || combine_key(it.key, 0) > min) {
Expand Down
2 changes: 1 addition & 1 deletion pyroaring/roaring.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// !!! DO NOT EDIT - THIS IS AN AUTO-GENERATED FILE !!!
// Created by amalgamation.sh on 2024-01-27T20:50:15Z
// Created by amalgamation.sh on 2024-01-30T20:46:02Z

/*
* The CRoaring project is under a dual license (Apache/MIT).
Expand Down

0 comments on commit 82e6d8d

Please sign in to comment.