Skip to content

Commit c4a4363

Browse files
committed
i8, i18, u16 str()
1 parent 66f271f commit c4a4363

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

vlib/builtin/int.v

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ pub fn (nn int) str() string {
4141
return tos(buf + max - len, len)
4242
}
4343

44+
pub fn (n i8) str() string { return int(n).str() }
45+
pub fn (n i16) str() string { return int(n).str() }
46+
pub fn (n u16) str() string { return int(n).str() }
47+
4448
pub fn (nn u32) str() string {
4549
mut n := nn
4650
if n == u32(0) {

0 commit comments

Comments
 (0)