Skip to content

Commit 0367d68

Browse files
rpkakalexrp
authored andcommitted
add parentheses in std.heap.page_size_min
1 parent d8d2aa9 commit 0367d68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/heap.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ pub var next_mmap_addr_hint: ?[*]align(page_size_min) u8 = null;
4242
///
4343
/// On many systems, the actual page size can only be determined at runtime
4444
/// with `pageSize`.
45-
pub const page_size_min: usize = std.options.page_size_min orelse page_size_min_default orelse
46-
@compileError(@tagName(builtin.cpu.arch) ++ "-" ++ @tagName(builtin.os.tag) ++ " has unknown page_size_min; populate std.options.page_size_min");
45+
pub const page_size_min: usize = std.options.page_size_min orelse (page_size_min_default orelse
46+
@compileError(@tagName(builtin.cpu.arch) ++ "-" ++ @tagName(builtin.os.tag) ++ " has unknown page_size_min; populate std.options.page_size_min"));
4747

4848
/// comptime-known maximum page size of the target.
4949
///

0 commit comments

Comments
 (0)