Fix some hasher methods' effects

This commit is contained in:
Nigel Tao committed 2018-05-12 18:01:24 +10:00
1 parent 131732e7eb
commit dfc8e14f4f
4 files changed
+6 -7

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ pub func decoder.decode?(dst base.io_writer, src base.io_reader)() {
in.dst.set_mark!()
var z base.status = try this.flate.decode?(dst:in.dst, src:in.src)
if not this.ignore_checksum {
checksum_got = this.checksum.update(x:in.dst.since_mark())
checksum_got = this.checksum.update!(x:in.dst.since_mark())
}
if z.is_ok() {
break