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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/runtime/alg.go b/src/runtime/alg.go
index 3e30e7ca77..4619abf4f5 100644
--- a/src/runtime/alg.go
+++ b/src/runtime/alg.go
@@ -173,8 +173,8 @@ func typehash(t *_type, p unsafe.Pointer, h uintptr) uintptr {
return interhash(p, h)
case kindArray:
a := (*arraytype)(unsafe.Pointer(t))
- for i := uintptr(0); i < a.len; i++ {
- h = typehash(a.elem, add(p, i*a.elem.Size_), h)
+ for i := uintptr(0); i < a.Len; i++ {
+ h = typehash((*_type)(a.Elem), add(p, i*a.Elem.Size_), h)
}
return h
case kindStruct: