diff options
Diffstat (limited to 'code/lib/types.felan')
-rw-r--r-- | code/lib/types.felan | 4 |
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; }; }; |