mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Simplify deflate's decoder.decode_uncompressed
This commit is contained in:
1 parent
84724a76a2
commit
a8767f285b
2 files changed
+3
-5
No files matched your search
@@ -231,8 +231,7 @@ pri func decoder.decode_uncompressed?(dst base.io_writer, src base.io_reader)()
|
||||
while true {
|
||||
var n_copied base.u32 = in.dst.copy_from_reader32(r:in.src, length:length)
|
||||
if length <= n_copied {
|
||||
length = 0
|
||||
break
|
||||
return
|
||||
}
|
||||
length -= n_copied
|
||||
if in.dst.available() == 0 {
|
||||
|
||||
Reference in new issue
Block a user