i8, i18, u16 str()

pull/2969/head 0.1.23
Alexander Medvednikov 2019-12-03 21:14:17 +03:00
parent 66f271f100
commit c4a43633da
1 changed files with 4 additions and 0 deletions

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) {