File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 6
6
| |
7
7
| io/reflect.go |
8
8
| |
9
- | LastModified: May 8 , 2021 |
9
+ | LastModified: Aug 27 , 2021 |
10
10
| Author: Ma Bingyao <[email protected] > |
11
11
| |
12
12
\*________________________________________________________*/
@@ -25,7 +25,7 @@ import (
25
25
)
26
26
27
27
type eface struct {
28
- typ uintptr
28
+ typ unsafe. Pointer
29
29
ptr unsafe.Pointer
30
30
}
31
31
@@ -63,7 +63,7 @@ func toSlice(array interface{}) (slice interface{}) {
63
63
t := reflect .TypeOf (array )
64
64
sliceType := reflect .SliceOf (t .Elem ())
65
65
sliceStruct := unpackEFace (& slice )
66
- sliceStruct .typ = ( uintptr )( reflect2 .PtrOf (sliceType ) )
66
+ sliceStruct .typ = reflect2 .PtrOf (sliceType )
67
67
sliceStruct .ptr = unsafeToSlice (array , t .Len ())
68
68
return
69
69
}
@@ -109,7 +109,6 @@ var float32PtrType = reflect.TypeOf((*float32)(nil))
109
109
var float64PtrType = reflect .TypeOf ((* float64 )(nil ))
110
110
var complex64PtrType = reflect .TypeOf ((* complex64 )(nil ))
111
111
var complex128PtrType = reflect .TypeOf ((* complex128 )(nil ))
112
- var interfacePtrType = reflect .TypeOf ((* interface {})(nil ))
113
112
var bytesPtrType = reflect .TypeOf ((* []byte )(nil ))
114
113
var stringPtrType = reflect .TypeOf ((* string )(nil ))
115
114
var timePtrType = reflect .TypeOf ((* time .Time )(nil ))
You can’t perform that action at this time.
0 commit comments