diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-29 03:53:13 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-03-29 03:53:13 +0000 |
commit | a0c8ad3bdfe2b84c35388bf9937fa9296fe50278 (patch) | |
tree | a4e8c7e8ea099b688e9c92980ae88d0d055a99b9 /libgo/go/syscall | |
parent | 917c1602aa2bf8905890ee6c19a1624f80b1c8c3 (diff) | |
download | gcc-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.go | 2 |
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 |