Skip to content

Commit

Permalink
Use uintptr for os.NewFile.
Browse files Browse the repository at this point in the history
bsiegert committed Feb 20, 2012
1 parent 83a5855 commit 0e8f1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serial_windows.go
Original file line number Diff line number Diff line change
@@ -52,7 +52,7 @@ func openPort(name string, baud int) (rwc io.ReadWriteCloser, err error) {
if err != nil {
return nil, err
}
f := os.NewFile(h, name)
f := os.NewFile(uintptr(h), name)
defer func() {
if err != nil {
f.Close()

0 comments on commit 0e8f1fd

Please sign in to comment.