kopia lustrzana https://github.com/jcs/id3-go
Allow lower than 4 bytes to be joined into int
rodzic
c83d124bf1
commit
a285701bb4
2
util.go
2
util.go
|
@ -36,7 +36,7 @@ func init() {
|
|||
}
|
||||
|
||||
func byteint(buf []byte, base uint) (i int32, err error) {
|
||||
if len(buf) != BytesPerInt {
|
||||
if len(buf) > BytesPerInt {
|
||||
err = errors.New("byte integer: invalid []byte length")
|
||||
return
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue