aboutsummaryrefslogtreecommitdiff
path: root/src/internal/runtime/maps/group.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/runtime/maps/group.go')
-rw-r--r--src/internal/runtime/maps/group.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/internal/runtime/maps/group.go b/src/internal/runtime/maps/group.go
index 35b39bbc37..aae667c8d8 100644
--- a/src/internal/runtime/maps/group.go
+++ b/src/internal/runtime/maps/group.go
@@ -53,7 +53,7 @@ func (b bitset) removeFirst() bitset {
// removeBelow removes all set bits below slot i (non-inclusive).
func (b bitset) removeBelow(i uintptr) bitset {
// Clear all bits below slot i's byte.
- mask := (uint64(1) << (8*uint64(i))) - 1
+ mask := (uint64(1) << (8 * uint64(i))) - 1
return b &^ bitset(mask)
}
@@ -239,7 +239,7 @@ func newGroups(typ *abi.SwissMapType, length uint64) groupsReference {
func (g *groupsReference) group(typ *abi.SwissMapType, i uint64) groupReference {
// TODO(prattmic): Do something here about truncation on cast to
// uintptr on 32-bit systems?
- offset := uintptr(i) * typ.Group.Size_
+ offset := uintptr(i) * typ.GroupSize
return groupReference{
data: unsafe.Pointer(uintptr(g.data) + offset),