]> Cypherpunks repositories - gostls13.git/commitdiff
os: work around inlining bug (issue 2678)
authorRuss Cox <rsc@golang.org>
Wed, 11 Jan 2012 04:26:11 +0000 (20:26 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 11 Jan 2012 04:26:11 +0000 (20:26 -0800)
TBR=lvd
CC=golang-dev
https://golang.org/cl/5534070

src/pkg/os/file_windows.go

index 4bf9c26038f5c7d7a58661627673fdd6c2102824..92f03c42419ef770696360b4606afee7698fec21 100644 (file)
@@ -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)