v1.27.0-a #10

Closed
jonathanface wants to merge 473 commits from v1.27.0-a into master
Showing only changes of commit 88e90aaa44 - Show all commits

View File

@ -95,7 +95,7 @@ func (t *messageIndices) UnmarshalCBOR(r io.Reader) (err error) {
if maj != cbg.MajUnsignedInt { if maj != cbg.MajUnsignedInt {
return fmt.Errorf("wrong type for uint64 field") return fmt.Errorf("wrong type for uint64 field")
} }
t.v[i] = uint64(extra) t.v[i] = extra
} }
return nil return nil
@ -117,7 +117,7 @@ func (t *messageIndices) MarshalCBOR(w io.Writer) error {
return err return err
} }
for _, v := range t.v { for _, v := range t.v {
if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, uint64(v)); err != nil { if err := cw.WriteMajorTypeHeader(cbg.MajUnsignedInt, v); err != nil {
return err return err
} }
} }