mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
std.heap.SbrkAllocator: fix typo
This commit is contained in:
parent
e630b20c62
commit
b8f5cfed45
1 changed files with 1 additions and 1 deletions
|
|
@ -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", .{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue