From 3d202da63fc1b4b0d68f80f057c3c1ad827cf298 Mon Sep 17 00:00:00 2001 From: Antonino Simone Di Stefano Date: Sun, 22 Sep 2024 23:15:48 +0200 Subject: Add missing package qualifier to alloc --- examples/demo/demo.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index 4b761f0e2..0dc30e2c0 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -906,7 +906,7 @@ parametric_polymorphism :: proc() { // This is how `new` is implemented alloc_type :: proc($T: typeid) -> ^T { - t := cast(^T)alloc(size_of(T), align_of(T)) + t := cast(^T)mem.alloc(size_of(T), align_of(T)) t^ = T{} // Use default initialization value return t } -- cgit v1.2.3