mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin: add .str
method for i/usize
(#11441)
This commit is contained in:
@ -15,14 +15,13 @@ 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 isize) str() string {
|
||||
return i64(x).str()
|
||||
}
|
||||
|
||||
pub fn (x usize) str() string {
|
||||
return u64(x).str()
|
||||
}
|
||||
|
||||
pub fn (x size_t) str() string {
|
||||
return u64(x).str()
|
||||
|
Reference in New Issue
Block a user