aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAntonino Simone Di Stefano <simon.distefano@gmx.de>2024-09-22 23:15:48 +0200
committerAntonino Simone Di Stefano <simon.distefano@gmx.de>2024-09-22 23:15:48 +0200
commit3d202da63fc1b4b0d68f80f057c3c1ad827cf298 (patch)
tree31782ee623794d6dd82cae136d901eae282f41e2 /examples
parent5a6f7615356136ea7ec0f11e38e7deed532bd7f6 (diff)
Add missing package qualifier to alloc
Diffstat (limited to 'examples')
-rw-r--r--examples/demo/demo.odin2
1 files changed, 1 insertions, 1 deletions
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
}