From 8fe770130131790761ddefd191d52fc5ea60c420 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 10 Jan 2012 20:26:11 -0800 Subject: [PATCH] os: work around inlining bug (issue 2678) TBR=lvd CC=golang-dev https://golang.org/cl/5534070 --- src/pkg/os/file_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.48.1