1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: introduce isize and usize (#11437)

This commit is contained in:
Enzo
2021-09-08 04:53:39 +02:00
committed by GitHub
parent 577fedfce1
commit cc8ee5fb84
13 changed files with 213 additions and 130 deletions

View File

@@ -15,6 +15,15 @@ pub fn ptr_str(ptr voidptr) string {
return buf1
}
// TODO uncomment to have string representation of i/usize
// pub fn (x isize) str() string {
// return u64(x).str()
// }
//
// pub fn (x usize) str() string {
// return u64(x).str()
// }
pub fn (x size_t) str() string {
return u64(x).str()
}