fix int.v
parent
c8dcbcb649
commit
0510bc7744
|
@ -28,7 +28,7 @@ pub fn (nn int) str() string {
|
||||||
// Fill the string from the end
|
// Fill the string from the end
|
||||||
for n > 0 {
|
for n > 0 {
|
||||||
d := n % 10
|
d := n % 10
|
||||||
buf[max - len - 1] = d + `0` as int
|
buf[max - len - 1] = d + (`0` as int)
|
||||||
len++
|
len++
|
||||||
n = n / 10
|
n = n / 10
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue