summaryrefslogtreecommitdiff
path: root/src/lib/syscall/errstr_darwin.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-03-12 19:04:38 -0700
committerRuss Cox <rsc@golang.org>2009-03-12 19:04:38 -0700
commite858a2016e5a7553985dc0f871a96700a65518aa (patch)
tree215ba82d2713550ef0ead44a627dd78579275bfa /src/lib/syscall/errstr_darwin.go
parent0de1c1a72174fce2275aaa474c3f538b866c7105 (diff)
downloadgolang-e858a2016e5a7553985dc0f871a96700a65518aa.tar.gz
make 6g constants behave as ken proposes. (i hope.)
various bug fixes and tests involving constants. test/const1.go is the major new test case. R=ken OCL=26216 CL=26224
Diffstat (limited to 'src/lib/syscall/errstr_darwin.go')
-rw-r--r--src/lib/syscall/errstr_darwin.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/syscall/errstr_darwin.go b/src/lib/syscall/errstr_darwin.go
index 780ce71b1..1ea357601 100644
--- a/src/lib/syscall/errstr_darwin.go
+++ b/src/lib/syscall/errstr_darwin.go
@@ -235,7 +235,7 @@ func str(val int64) string { // do it here rather than with fmt to avoid depend
}
func Errstr(errno int64) string {
- if errno < 0 || errno >= len(error) {
+ if errno < 0 || errno >= int64(len(error)) {
return "Error " + str(errno)
}
return error[errno]