Merge pull request #4279 from obiwan87/master

Fix compile errors
This commit is contained in:
gingerBill
2024-09-25 17:32:30 +01:00
committed by GitHub
5 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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
}