aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeer <himbeer@disroot.org>2024-07-20 18:39:48 +0200
committerHimbeer <himbeer@disroot.org>2024-07-20 18:39:48 +0200
commit30c19986a7ecfe704acf6f7b46ad6de3154b2920 (patch)
tree26da58eb89a8ea18e289c72cdd91b594e6fa0f46
parent0d694c363c95c392408b1a9a029d2ac6bfcfb38c (diff)
mem: Annotate page_allocator with explicit Allocator type
This makes it possible to use the allocator in some code locations that would otherwise require local type annotations.
-rw-r--r--src/lib/mem.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/mem.zig b/src/lib/mem.zig
index da50641..5ec99ab 100644
--- a/src/lib/mem.zig
+++ b/src/lib/mem.zig
@@ -255,7 +255,7 @@ pub const PageAllocator = struct {
}
};
-pub const page_allocator = .{
+pub const page_allocator = Allocator{
.ptr = undefined,
.vtable = &PageAllocator.vtable,
};