Commit b8f5cfed45

Andrew Kelley <andrew@ziglang.org>
2025-02-06 23:50:55
std.heap.SbrkAllocator: fix typo
1 parent e630b20
Changed files (1)
lib
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", .{