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

i8, i18, u16 str()

This commit is contained in:
Alexander Medvednikov 2019-12-03 21:14:17 +03:00
parent 66f271f100
commit c4a43633da

View File

@ -41,6 +41,10 @@ pub fn (nn int) str() string {
return tos(buf + max - len, len)
}
pub fn (n i8) str() string { return int(n).str() }
pub fn (n i16) str() string { return int(n).str() }
pub fn (n u16) str() string { return int(n).str() }
pub fn (nn u32) str() string {
mut n := nn
if n == u32(0) {