Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
lwwmanning committed Jan 22, 2024
1 parent 8b702da commit f5a459d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/roaring.zig
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ pub const Bitset = extern struct {

/// Grow the bitset if necessary so that it can support at least `newCapacity` elements.
pub fn ensureCapacity(self: *Bitset, minBits: usize) RoaringError!void {
const minArraySize = try std.math.divCeil(usize, minBits, 64);
const minArraySize = std.math.divCeil(usize, minBits, 64) catch unreachable;
if (minArraySize <= self.arraysize) {
return;
}
Expand Down

0 comments on commit f5a459d

Please sign in to comment.