aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/alg.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/alg.go')
-rw-r--r--src/runtime/alg.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/alg.go b/src/runtime/alg.go
index 4eda9d4e75..a1f683f68a 100644
--- a/src/runtime/alg.go
+++ b/src/runtime/alg.go
@@ -167,7 +167,7 @@ func typehash(t *_type, p unsafe.Pointer, h uintptr) uintptr {
return strhash(p, h)
case kindInterface:
i := (*interfacetype)(unsafe.Pointer(t))
- if len(i.mhdr) == 0 {
+ if len(i.Methods) == 0 {
return nilinterhash(p, h)
}
return interhash(p, h)
@@ -179,11 +179,11 @@ func typehash(t *_type, p unsafe.Pointer, h uintptr) uintptr {
return h
case kindStruct:
s := (*structtype)(unsafe.Pointer(t))
- for _, f := range s.fields {
- if f.name.isBlank() {
+ for _, f := range s.Fields {
+ if f.Name.IsBlank() {
continue
}
- h = typehash(f.typ, add(p, f.offset), h)
+ h = typehash(f.Typ, add(p, f.Offset), h)
}
return h
default: