commit b8f5cfed457726a77082b7ffe6672b6066c0a66e (tree)
parent e630b20c6228aa3c8b50841af5ce7bc102202162
Author: Andrew Kelley <andrew@ziglang.org>
Date: Thu, 6 Feb 2025 14:50:55 -0800
std.heap.SbrkAllocator: fix typo
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/heap/sbrk_allocator.zig b/lib/std/heap/sbrk_allocator.zig
@@ -59,7 +59,7 @@ pub fn SbrkAllocator(comptime sbrk: *const fn (n: usize) usize) type {
}
const next_addr = next_addrs[class];
- if (next_addr % heap.pageSize == 0) {
+ if (next_addr % heap.pageSize() == 0) {
const addr = allocBigPages(1);
if (addr == 0) return null;
//std.debug.print("allocated fresh slot_size={d} class={d} addr=0x{x}\n", .{