aboutsummaryrefslogtreecommitdiff
path: root/code/lib/memory.felan
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-06-09 17:50:46 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-06-09 17:50:46 +0330
commit03e9e1708eada3985529949302f214a223a297c2 (patch)
treed9682cf0880934c3f384ec6c335808303f73a285 /code/lib/memory.felan
parent922b6c51fbcdabd3823e311c46fe55af193196e1 (diff)
fix bug in shape shifter matching
Diffstat (limited to 'code/lib/memory.felan')
-rw-r--r--code/lib/memory.felan4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/lib/memory.felan b/code/lib/memory.felan
index 7715d0e..55451c5 100644
--- a/code/lib/memory.felan
+++ b/code/lib/memory.felan
@@ -8,6 +8,6 @@ malloc :: (size:i64,comptime t:type) -> (*t) {
return @cast(malloc(size*@cast(@size_of(t),i64)),*t);
};
-free :: (a:*anytype) -> void {
- free(@cast(a,*void));
+free :: (ptr:*anytype) -> void {
+ free(@cast(ptr,*void));
};