src/runtime/hashmap.go | 4 ++-- diff --git a/src/runtime/hashmap.go b/src/runtime/hashmap.go index 571f812c4ebdda2caa78c5ef90bb1d00a673cff5..791af8cf36a7b3512be85c5c352b6df7e9b0a1f6 100644 --- a/src/runtime/hashmap.go +++ b/src/runtime/hashmap.go @@ -150,10 +150,10 @@ return h > empty && h < minTopHash } func (b *bmap) overflow(t *maptype) *bmap { - return *(**bmap)(add(unsafe.Pointer(b), uintptr(t.bucketsize)-ptrSize)) + return *(**bmap)(add(unsafe.Pointer(b), uintptr(t.bucketsize)-regSize)) } func (b *bmap) setoverflow(t *maptype, ovf *bmap) { - *(**bmap)(add(unsafe.Pointer(b), uintptr(t.bucketsize)-ptrSize)) = ovf + *(**bmap)(add(unsafe.Pointer(b), uintptr(t.bucketsize)-regSize)) = ovf } func makemap(t *maptype, hint int64) *hmap {