mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fix int.v
This commit is contained in:
parent
c8dcbcb649
commit
0510bc7744
@ -28,7 +28,7 @@ pub fn (nn int) str() string {
|
||||
// Fill the string from the end
|
||||
for n > 0 {
|
||||
d := n % 10
|
||||
buf[max - len - 1] = d + `0` as int
|
||||
buf[max - len - 1] = d + (`0` as int)
|
||||
len++
|
||||
n = n / 10
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user