diff --git a/src/internal/poll/sendfile_bsd.go b/src/internal/poll/sendfile_bsd.go index 9eda85882ca..3ba30a2154c 100644 --- a/src/internal/poll/sendfile_bsd.go +++ b/src/internal/poll/sendfile_bsd.go @@ -23,7 +23,7 @@ func SendFile(dstFD *FD, src int, pos, remain int64) (int64, error) { return 0, err } - dst := int(dstFD.Sysfd) + dst := dstFD.Sysfd var written int64 var err error for remain > 0 { diff --git a/src/internal/poll/sendfile_linux.go b/src/internal/poll/sendfile_linux.go index d6442e86664..6e7852347b7 100644 --- a/src/internal/poll/sendfile_linux.go +++ b/src/internal/poll/sendfile_linux.go @@ -20,7 +20,7 @@ func SendFile(dstFD *FD, src int, remain int64) (int64, error) { return 0, err } - dst := int(dstFD.Sysfd) + dst := dstFD.Sysfd var written int64 var err error for remain > 0 { diff --git a/src/internal/poll/sendfile_solaris.go b/src/internal/poll/sendfile_solaris.go index 748c85131e6..0a884307bb1 100644 --- a/src/internal/poll/sendfile_solaris.go +++ b/src/internal/poll/sendfile_solaris.go @@ -24,7 +24,7 @@ func SendFile(dstFD *FD, src int, pos, remain int64) (int64, error) { return 0, err } - dst := int(dstFD.Sysfd) + dst := dstFD.Sysfd var written int64 var err error for remain > 0 {