Skip to content

Commit

Permalink
fix: remove duplicate assert
Browse files Browse the repository at this point in the history
  • Loading branch information
maolonglong committed Oct 14, 2023
1 parent 702d48e commit 56a35d1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/buddy2.zig
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ pub const Buddy2 = struct {
}

pub fn size(self: *const Self, offset: usize) usize {
assert(offset >= 0 and offset < self.len);
return self.indexToSize(self.backward(offset));
}

Expand Down

0 comments on commit 56a35d1

Please sign in to comment.