fix rle
This commit is contained in:
parent
05f3711bcf
commit
256fad24fc
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ impl Iterator for Encoder<'_> {
|
||||||
.take(256)
|
.take(256)
|
||||||
.enumerate()
|
.enumerate()
|
||||||
.find(|&(_i, c)| c != byte)
|
.find(|&(_i, c)| c != byte)
|
||||||
.unwrap_or((self.src.len(), 0));
|
.unwrap_or((255.min(self.src.len()), 0));
|
||||||
|
|
||||||
self.src = &self.src[count..];
|
self.src = &self.src[count..];
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue