Fix some built-in methods' effects

This commit is contained in:
Nigel Tao committed 2018-05-12 17:55:57 +10:00
1 parent 2919e51575
commit 131732e7eb
8 files changed
+21 -24

No files matched your search

+2 -2
View File
@@ -123,7 +123,7 @@ pub struct decoder?(
pub func decoder.decode?(dst base.io_writer, src base.io_reader)() {
while true {
in.dst.set_mark()
in.dst.set_mark!()
var z base.status = try this.decode_blocks?(dst:in.dst, src:in.src)
if not z.is_suspension() {
return z
@@ -229,7 +229,7 @@ pri func decoder.decode_uncompressed?(dst base.io_writer, src base.io_reader)()
}
length = length.low_bits(n:16)
while true {
var n_copied base.u32 = in.dst.copy_from_reader32(r:in.src, length:length)
var n_copied base.u32 = in.dst.copy_from_reader32!(r:in.src, length:length)
if length <= n_copied {
return
}