1
0
mirror of https://github.com/golang/go synced 2024-11-24 04:20:03 -07:00

doc/progs: fix windows/amd64

R=rsc
CC=alex.brainman, golang-dev, vcc.163
https://golang.org/cl/4965050
This commit is contained in:
Jaroslavas Počepko 2011-08-29 15:38:12 -04:00 committed by Russ Cox
parent eae0a48cf5
commit 2afc46f2b2
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ type File struct {
} }
func newFile(fd syscall.Handle, name string) *File { func newFile(fd syscall.Handle, name string) *File {
if fd < 0 { if fd == ^syscall.Handle(0) {
return nil return nil
} }
return &File{fd, name} return &File{fd, name}

View File

@ -15,7 +15,7 @@ fi
rm -f *.$O rm -f *.$O
if [ "$GOOS" = "windows" ];then if [ "$GOOS" = "windows" ];then
$GC -o file.8 file_windows.go $GC -o file.$O file_windows.go
else else
$GC file.go $GC file.go
fi fi