Skip to content

Commit

Permalink
Fix the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezibenroc committed Jan 16, 2024
1 parent 7e2a8e7 commit 30ad005
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyroaring/abstract_bitmap.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ cdef class AbstractBitMap64:
"""
if range_end <= range_start or range_end == 0 or range_start >= 2**64-1:
return True # empty range
return self.range_cardinality(range_start, range_end) == range_end - range_start + 1
return self.range_cardinality(range_start, range_end) == range_end - range_start

def range_cardinality(self, uint64_t range_start, uint64_t range_end):
"""
Expand Down
3 changes: 3 additions & 0 deletions pyroaring/bitmap.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,6 @@ cdef class BitMap(AbstractBitMap):
if range_end >= 2**32:
range_end = 2**32
croaring.roaring_bitmap_remove_range(self._c_bitmap, range_start, range_end)

cdef class BitMap64(AbstractBitMap64):
pass

0 comments on commit 30ad005

Please sign in to comment.