From: Russ Cox Date: Wed, 11 Jan 2012 04:26:11 +0000 (-0800) Subject: os: work around inlining bug (issue 2678) X-Git-Tag: weekly.2012-01-15~77 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8fe770130131790761ddefd191d52fc5ea60c420;p=gostls13.git os: work around inlining bug (issue 2678) TBR=lvd CC=golang-dev https://golang.org/cl/5534070 --- diff --git a/src/pkg/os/file_windows.go b/src/pkg/os/file_windows.go index 4bf9c26038..92f03c4241 100644 --- a/src/pkg/os/file_windows.go +++ b/src/pkg/os/file_windows.go @@ -55,7 +55,7 @@ type dirInfo struct { const DevNull = "NUL" -func (file *file) isdir() bool { return file != nil && file.dirinfo != nil } +func (f *file) isdir() bool { return f != nil && f.dirinfo != nil } func openFile(name string, flag int, perm uint32) (file *File, err error) { r, e := syscall.Open(name, flag|syscall.O_CLOEXEC, perm)