diff --git a/go/types/sizes.go b/go/types/sizes.go index 5d069a9371e..3c378117a95 100644 --- a/go/types/sizes.go +++ b/go/types/sizes.go @@ -105,7 +105,7 @@ func (s *StdSizes) Sizeof(T Type) int64 { offsets := t.offsets if t.offsets == nil { // compute offsets on demand - offsets = stdSizes.Offsetsof(t.fields) + offsets = s.Offsetsof(t.fields) t.offsets = offsets } return offsets[n-1] + s.Sizeof(t.fields[n-1].typ)