We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c2c3cf commit e45da9eCopy full SHA for e45da9e
msgpack/field.go
@@ -74,6 +74,8 @@ func collectFields(fields []*field, t reflect.Type, visited map[reflect.Type]boo
74
}
75
76
if len(index) == d {
77
+ _ = fields[len(fields)-1] // bounds check hint to compiler
78
+
79
// There is another field with same name and same depth
80
// Remove that field and skip this field
81
j := 0
0 commit comments