1
0
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:
Alexander Medvednikov 2020-02-07 14:57:48 +01:00
parent c8dcbcb649
commit 0510bc7744

View File

@ -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
}