fix itab on 32bit

This commit is contained in:
Li Jie
2025-04-16 23:31:34 +08:00
parent 29ec4a7a0e
commit 0d75bbace0

View File

@@ -43,8 +43,7 @@ type interfacetype = abi.InterfaceType
type itab struct { type itab struct {
inter *interfacetype inter *interfacetype
_type *_type _type *_type
hash uint32 // copy of _type.hash. Used for type switches. hash uint32 // copy of _type.hash. Used for type switches.
_ [4]byte
fun [1]uintptr // variable sized. fun[0]==0 means _type does not implement inter. fun [1]uintptr // variable sized. fun[0]==0 means _type does not implement inter.
} }