diff options
Diffstat (limited to 'src/internal/runtime/maps/export_test.go')
| -rw-r--r-- | src/internal/runtime/maps/export_test.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/internal/runtime/maps/export_test.go b/src/internal/runtime/maps/export_test.go index 151c11fba8..c9c1da6a1c 100644 --- a/src/internal/runtime/maps/export_test.go +++ b/src/internal/runtime/maps/export_test.go @@ -86,7 +86,11 @@ func (m *Map) KeyFromFullGroup(typ *abi.SwissMapType) unsafe.Pointer { if g.ctrls().get(j) == ctrlDeleted { continue } - return g.key(typ, j) + slotKey := g.key(typ, j) + if typ.IndirectKey() { + slotKey = *((*unsafe.Pointer)(slotKey)) + } + return slotKey } } } |
