Make the return value mandatory; add ok

This commit is contained in:
Nigel Tao committed 2018-11-24 15:09:28 +11:00
1 parent 24ace1c144
commit 762b320b5e
11 files changed
+45 -50

No files matched your search

+1 -1
View File
@@ -231,7 +231,7 @@ pri func decoder.decode_uncompressed!??(dst base.io_writer, src base.io_reader)
while true {
var n_copied base.u32 = args.dst.copy_n_from_reader!(n:length, r:args.src)
if length <= n_copied {
return
return ok
}
length -= n_copied
if args.dst.available() == 0 {