]> Cypherpunks repositories - gostls13.git/commitdiff
net: remove superfluous type conversion
authorAlex Brainman <alex.brainman@gmail.com>
Fri, 7 Feb 2014 05:58:45 +0000 (16:58 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Fri, 7 Feb 2014 05:58:45 +0000 (16:58 +1100)
LGTM=minux.ma, dvyukov
R=golang-codereviews, minux.ma, dvyukov
CC=golang-codereviews
https://golang.org/cl/60900043

src/pkg/net/fd_windows.go

index 630fc5e6f7192bdb6b563519a4bff408d1355f78..0f8d6de5b547b3b0f544fd01a99ecd1a5ab633cb 100644 (file)
@@ -119,7 +119,7 @@ func (o *operation) InitBuf(buf []byte) {
        o.buf.Len = uint32(len(buf))
        o.buf.Buf = nil
        if len(buf) != 0 {
-               o.buf.Buf = (*byte)(unsafe.Pointer(&buf[0]))
+               o.buf.Buf = &buf[0]
        }
 }