vendor: update ugorji/go
This commit is contained in:
2
cmd/vendor/github.com/ugorji/go/codec/gen-helper.generated.go
generated
vendored
2
cmd/vendor/github.com/ugorji/go/codec/gen-helper.generated.go
generated
vendored
@ -1,4 +1,4 @@
|
||||
// // +build ignore
|
||||
/* // +build ignore */
|
||||
|
||||
// Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
|
||||
// Use of this source code is governed by a MIT license found in the LICENSE file.
|
||||
|
12
cmd/vendor/github.com/ugorji/go/codec/gen.go
generated
vendored
12
cmd/vendor/github.com/ugorji/go/codec/gen.go
generated
vendored
@ -165,15 +165,9 @@ type genRunner struct {
|
||||
//
|
||||
// Library users: *DO NOT USE IT DIRECTLY. IT WILL CHANGE CONTINOUSLY WITHOUT NOTICE.*
|
||||
func Gen(w io.Writer, buildTags, pkgName, uid string, useUnsafe bool, ti *TypeInfos, typ ...reflect.Type) {
|
||||
// trim out all types which already implement Selfer
|
||||
typ2 := make([]reflect.Type, 0, len(typ))
|
||||
for _, t := range typ {
|
||||
if reflect.PtrTo(t).Implements(selferTyp) || t.Implements(selferTyp) {
|
||||
continue
|
||||
}
|
||||
typ2 = append(typ2, t)
|
||||
}
|
||||
typ = typ2
|
||||
// All types passed to this method do not have a codec.Selfer method implemented directly.
|
||||
// codecgen already checks the AST and skips any types that define the codec.Selfer methods.
|
||||
// Consequently, there's no need to check and trim them if they implement codec.Selfer
|
||||
|
||||
if len(typ) == 0 {
|
||||
return
|
||||
|
2
cmd/vendor/github.com/ugorji/go/codec/simple.go
generated
vendored
2
cmd/vendor/github.com/ugorji/go/codec/simple.go
generated
vendored
@ -347,7 +347,7 @@ func (d *simpleDecDriver) decLen() int {
|
||||
}
|
||||
return int(ui)
|
||||
}
|
||||
d.d.errorf("decLen: Cannot read length: bd%8 must be in range 0..4. Got: %d", d.bd%8)
|
||||
d.d.errorf("decLen: Cannot read length: bd%%8 must be in range 0..4. Got: %d", d.bd%8)
|
||||
return -1
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user