Skip to content

Commit

Permalink
i8, i18, u16 str()
Browse files Browse the repository at this point in the history
  • Loading branch information
medvednikov committed Dec 3, 2019
1 parent 66f271f commit c4a4363
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vlib/builtin/int.v
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c4a4363

Please sign in to comment.