diff options
author | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-17 16:19:33 +0330 |
---|---|---|
committer | A404M <ahmadmahmoudiprogrammer@gmail.com> | 2025-05-17 16:19:33 +0330 |
commit | cfc5418931fa15e6a31583820266bf35d489da88 (patch) | |
tree | cbfbf5f8357277613dac08dd3a17a420d4396c0b /code/main.felan | |
parent | 62090a4830bd9f01e56b08f50d502d680be9d1de (diff) |
fix memory leaks and shape shifter
Diffstat (limited to 'code/main.felan')
-rw-r--r-- | code/main.felan | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/code/main.felan b/code/main.felan index 9520562..eb71a9d 100644 --- a/code/main.felan +++ b/code/main.felan @@ -7,7 +7,7 @@ print :: (comptime t:type,v:t)->void{ main :: () -> void { i := 0; - while i < 10 { + while true { i += 1; if i == 7 return; @@ -16,6 +16,6 @@ main :: () -> void { else if i == 8 break; print(u8,@cast(i,u8)+'0'); - print(u16,@cast(i,u16)); + print(u16,@cast(@cast(i,u8) + '0',u16)); } }; |