diff options
Diffstat (limited to 'src/syscall/errstr_darwin.go')
-rw-r--r-- | src/syscall/errstr_darwin.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syscall/errstr_darwin.go b/src/syscall/errstr_darwin.go index c3ae97523..dd4e48587 100644 --- a/src/syscall/errstr_darwin.go +++ b/src/syscall/errstr_darwin.go @@ -336,11 +336,11 @@ func str(val int64) string { // do it here rather than with fmt to avoid depend var buf [32]byte; // big enough for int64 i := len(buf)-1; for val >= 10 { - buf[i] = val%10 + '0'; + buf[i] = byte(val%10 + '0'); i--; val /= 10; } - buf[i] = val + '0'; + buf[i] = byte(val + '0'); return string(buf)[i:len(buf)]; } |