Fix shadowed variable

This commit is contained in:
Herman Slatman 2022-09-21 14:41:19 +02:00
parent 711af6d0d6
commit fe7db2ae02
No known key found for this signature in database
GPG key ID: F4D8A44EA0A75A4F

View file

@ -850,10 +850,10 @@ func uitoa(val uint) string {
var buf [20]byte // big enough for 64bit value base 10
i := len(buf) - 1
for val >= 10 {
q := val / 10
buf[i] = byte('0' + val - q*10)
v := val / 10
buf[i] = byte('0' + val - v*10)
i--
val = q
val = v
}
// val < 10
buf[i] = byte('0' + val)