fixes some bug
This commit is contained in:
@ -142,12 +142,14 @@ func (p *PaletteContainer[T]) ReadFrom(r io.Reader) (n int64, err error) {
|
||||
return n, err
|
||||
}
|
||||
|
||||
p.data = NewBitStorage(p.bits, p.data.length, nil)
|
||||
|
||||
nn, err = p.data.ReadFrom(r)
|
||||
n += nn
|
||||
if err != nil {
|
||||
return n, err
|
||||
}
|
||||
return n, p.data.Fix(p.bits)
|
||||
return n, nil
|
||||
}
|
||||
|
||||
func (p *PaletteContainer[T]) WriteTo(w io.Writer) (n int64, err error) {
|
||||
|
Reference in New Issue
Block a user