aboutsummaryrefslogtreecommitdiff
path: root/code/lib/types.felan
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-30 22:01:19 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-05-30 22:01:19 +0330
commitc91d3a8893b9c53c5c8e4c5cff72d7caf44cfee4 (patch)
tree47eb14dbceea446e9e065a12e08c2feff22d693a /code/lib/types.felan
parentbb3822cbb347c712925530ded451fc9027f3b26f (diff)
fixing some minor issues
Diffstat (limited to 'code/lib/types.felan')
-rw-r--r--code/lib/types.felan4
1 files changed, 2 insertions, 2 deletions
diff --git a/code/lib/types.felan b/code/lib/types.felan
index 8c0cbf1..df7f5c3 100644
--- a/code/lib/types.felan
+++ b/code/lib/types.felan
@@ -2,7 +2,7 @@ string :: []u8;
array :: (comptime size:u64, comptime t:type) -> type {
return struct {
- ptr : t;
- size : i32 : size;
+ ptr : *t;
+ size : @type_of(size) : size;
};
};