Skip to content

Commit

Permalink
posix test.zig: remove runtime @ctz on pageSize()
Browse files Browse the repository at this point in the history
  • Loading branch information
archbirdplus committed Aug 9, 2024
1 parent b55acc2 commit b5e238b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/std/posix/test.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1323,5 +1323,5 @@ const CommonOpenFlags = packed struct {
test "pageSize() smoke test" {
const size = std.heap.pageSize();
// Check that pageSize is a power of 2.
std.debug.assert(size == (1 << @ctz(size)));
std.debug.assert(size & (size - 1) == 0);
}

0 comments on commit b5e238b

Please sign in to comment.