|
|
@@ -448,7 +448,7 @@ func (fi *marshalFieldInfo) computeMarshalFieldInfo(f *reflect.StructField) {
|
|
|
|
|
|
func (fi *marshalFieldInfo) computeOneofFieldInfo(f *reflect.StructField, oneofImplementers []interface{}) {
|
|
|
fi.field = toField(f)
|
|
|
- fi.wiretag = 1<<31 - 1 // Use a large tag number, make oneofs sorted at the end. This tag will not appear on the wire.
|
|
|
+ fi.wiretag = math.MaxInt32 // Use a large tag number, make oneofs sorted at the end. This tag will not appear on the wire.
|
|
|
fi.isPointer = true
|
|
|
fi.sizer, fi.marshaler = makeOneOfMarshaler(fi, f)
|
|
|
fi.oneofElems = make(map[reflect.Type]*marshalElemInfo)
|