mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-19 03:54:01 +00:00
reflect: update type code type to uintptr
This type was missed after the recent interface updates.
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ package reflect
|
|||||||
//
|
//
|
||||||
// Not used directly. These types are all replaced with the number the compiler
|
// Not used directly. These types are all replaced with the number the compiler
|
||||||
// uses internally for the type.
|
// uses internally for the type.
|
||||||
type Kind uint16
|
type Kind uintptr
|
||||||
|
|
||||||
// Copied from reflect/type.go
|
// Copied from reflect/type.go
|
||||||
// https://golang.org/src/reflect/type.go?s=8302:8316#L217
|
// https://golang.org/src/reflect/type.go?s=8302:8316#L217
|
||||||
@@ -39,7 +39,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// The typecode as used in an interface{}.
|
// The typecode as used in an interface{}.
|
||||||
type Type uint16
|
type Type uintptr
|
||||||
|
|
||||||
func TypeOf(i interface{}) Type {
|
func TypeOf(i interface{}) Type {
|
||||||
return ValueOf(i).typecode
|
return ValueOf(i).typecode
|
||||||
|
|||||||
Reference in New Issue
Block a user