Skip to content

Commit b8f5cfe

Browse files
committed
std.heap.SbrkAllocator: fix typo
1 parent e630b20 commit b8f5cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/heap/sbrk_allocator.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub fn SbrkAllocator(comptime sbrk: *const fn (n: usize) usize) type {
5959
}
6060

6161
const next_addr = next_addrs[class];
62-
if (next_addr % heap.pageSize == 0) {
62+
if (next_addr % heap.pageSize() == 0) {
6363
const addr = allocBigPages(1);
6464
if (addr == 0) return null;
6565
//std.debug.print("allocated fresh slot_size={d} class={d} addr=0x{x}\n", .{

0 commit comments

Comments
 (0)