aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/syscall
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-03-29 03:53:13 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-03-29 03:53:13 +0000
commita0c8ad3bdfe2b84c35388bf9937fa9296fe50278 (patch)
treea4e8c7e8ea099b688e9c92980ae88d0d055a99b9 /libgo/go/syscall
parent917c1602aa2bf8905890ee6c19a1624f80b1c8c3 (diff)
downloadgcc-a0c8ad3bdfe2b84c35388bf9937fa9296fe50278.zip
gcc-a0c8ad3bdfe2b84c35388bf9937fa9296fe50278.tar.gz
gcc-a0c8ad3bdfe2b84c35388bf9937fa9296fe50278.tar.bz2
compiler, libgo: unsafe.{Sizeof,Alignof,Offsetof} return uintptr.
From-SVN: r185946
Diffstat (limited to 'libgo/go/syscall')
-rw-r--r--libgo/go/syscall/libcall_posix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/syscall/libcall_posix.go b/libgo/go/syscall/libcall_posix.go
index 92feae0..9961ba8 100644
--- a/libgo/go/syscall/libcall_posix.go
+++ b/libgo/go/syscall/libcall_posix.go
@@ -138,7 +138,7 @@ func (w WaitStatus) TrapCause() int
//sys Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, err error)
//select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) int
-const nfdbits = unsafe.Sizeof(fds_bits_type) * 8
+const nfdbits = int(unsafe.Sizeof(fds_bits_type) * 8)
type FdSet struct {
Bits [(FD_SETSIZE + nfdbits - 1) / nfdbits]fds_bits_type