Simplify deflate's decoder.decode_uncompressed

This commit is contained in:
Nigel Tao committed 2018-05-12 15:51:00 +10:00
1 parent 84724a76a2
commit a8767f285b
2 files changed
+3 -5

No files matched your search

+1 -2
View File
@@ -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 {