diff options
author | Rob Pike <r@golang.org> | 2008-07-29 13:16:42 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2008-07-29 13:16:42 -0700 |
commit | 4a08aeb4d93fbb527663cd03c7e89025b70fef0f (patch) | |
tree | 5f31ae9bed87205733280e45e2753dc1565655ce /src/syscall | |
parent | f38139599a7269b67a44a501db996dbd76368a68 (diff) | |
download | go-4a08aeb4d93fbb527663cd03c7e89025b70fef0f.tar.gz |
fix type error caused by recent change
R=gri
OCL=13545
CL=13545
Diffstat (limited to 'src/syscall')
-rw-r--r-- | src/syscall/errstr_darwin.go | 4 | ||||
-rw-r--r-- | src/syscall/errstr_linux.go | 4 |
2 files changed, 4 insertions, 4 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)]; } diff --git a/src/syscall/errstr_linux.go b/src/syscall/errstr_linux.go index fa42572cf..021861a24 100644 --- a/src/syscall/errstr_linux.go +++ b/src/syscall/errstr_linux.go @@ -410,11 +410,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)]; } |