]> Cypherpunks repositories - gostls13.git/commitdiff
doc/progs: fix windows/amd64
authorJaroslavas Počepko <jp@webmaster.ms>
Mon, 29 Aug 2011 19:38:12 +0000 (15:38 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 29 Aug 2011 19:38:12 +0000 (15:38 -0400)
R=rsc
CC=alex.brainman, golang-dev, vcc.163
https://golang.org/cl/4965050

doc/progs/file_windows.go
doc/progs/run

index 03003a3f71cb096a3892e0c094f00e8f8eae8801..bfbac75ad080635d5f9a5842b9b6550c6778fa18 100644 (file)
@@ -15,7 +15,7 @@ type File struct {
 }
 
 func newFile(fd syscall.Handle, name string) *File {
-       if fd < 0 {
+       if fd == ^syscall.Handle(0) {
                return nil
        }
        return &File{fd, name}
index 7bff2ccf4f1185e488aee17414619b4a60ea4adb..9d56049a8855516305bd15c115131a0b14131a92 100755 (executable)
@@ -15,7 +15,7 @@ fi
 rm -f *.$O
 
 if [ "$GOOS" = "windows" ];then
-       $GC -o file.8 file_windows.go
+       $GC -o file.$O file_windows.go
 else
        $GC file.go
 fi