aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-09-25 17:32:30 +0100
committerGitHub <noreply@github.com>2024-09-25 17:32:30 +0100
commit8371ef66816c60e0a69dd52255d36a0718542f3d (patch)
tree2b0993875872907406207b586354459a2f1b2555 /examples
parent987faa3f186a2929c27bcc856a0b2fae43a709e4 (diff)
parente9e78630336e0f83ad4cb5ca74886dad8f08ffee (diff)
Merge pull request #4279 from obiwan87/master
Fix compile errors
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
}