add uint convert, remove isize, usize

This commit is contained in:
ge committed 2026-10-30 02:36:56 +03:00
1 parent ceed23ceed
commit 5ef2010b69
2 files changed
+3 -6

No files matched your search

+2 -5
View File
@@ -258,8 +258,8 @@ fn convert_string[T](s string) !T {
i64 { i64 {
return strconv.atoi64(s)! return strconv.atoi64(s)!
} }
isize { uint {
return isize(strconv.atoi64(s)!) return uint(strconv.atou64(s)!)
} }
u8 { u8 {
return strconv.atou8(s)! return strconv.atou8(s)!
@@ -273,9 +273,6 @@ fn convert_string[T](s string) !T {
u64 { u64 {
return strconv.atou64(s)! return strconv.atou64(s)!
} }
usize {
return usize(strconv.atou64(s)!)
}
f32 { f32 {
return f32(strconv.atof64(s)!) return f32(strconv.atof64(s)!)
} }
+1 -1
View File
@@ -1,7 +1,7 @@
Module { Module {
name: 'ranges' name: 'ranges'
description: 'Operating with ranges of numbers' description: 'Operating with ranges of numbers'
version: '0.7.0' version: '0.7.1'
license: 'Unlicense' license: 'Unlicense'
dependencies: [] dependencies: []
} }