Skip to content

Commit

Permalink
page size: remove redundant std.debug from assert
Browse files Browse the repository at this point in the history
  • Loading branch information
archbirdplus committed Aug 14, 2024
1 parent 36ecd39 commit 39083d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/std/heap.zig
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub inline fn pageSize() usize {
return page_size;
}
const size = queryPageSize();
std.debug.assert(size > 0);
assert(size > 0);
return size;
}

Expand Down Expand Up @@ -135,8 +135,8 @@ fn queryPageSize() usize {
};

if (size != 0) {
std.debug.assert(size >= page_size);
std.debug.assert(size <= page_size_max);
assert(size >= page_size);
assert(size <= page_size_max);
}
runtime_page_size.store(size, .unordered);

Expand Down

0 comments on commit 39083d4

Please sign in to comment.