diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-08-23 00:20:48 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-08-23 00:20:48 +0000 |
commit | c92900d1db111ce186aa834ba8ce47abd765e578 (patch) | |
tree | 7edd9bd2aa5bc7de0078a507ca3e59e2e10df5f1 /libgo | |
parent | 8489a21ac48e0a8d6760b1f7675d958dc5f5de23 (diff) | |
download | gcc-c92900d1db111ce186aa834ba8ce47abd765e578.tar.gz |
compiler: Remove old handling of unsafe.Pointer in type assertions.
Fixes issue 17.
From-SVN: r190608
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/os/dir.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libgo/go/os/dir.go b/libgo/go/os/dir.go index 02b21e6f7da..c77560fc08c 100644 --- a/libgo/go/os/dir.go +++ b/libgo/go/os/dir.go @@ -49,7 +49,7 @@ func (file *File) readdirnames(n int) (names []string, err error) { file.dirinfo.dir = r } - entry_dirent := unsafe.Pointer(&file.dirinfo.buf[0]).(*syscall.Dirent) + entry_dirent := (*syscall.Dirent)(unsafe.Pointer(&file.dirinfo.buf[0])) size := n if size < 0 { |