Remove a dummy parameter hack

This commit is contained in:
Nigel Tao committed 2018-05-02 20:45:36 +10:00
1 parent dd18633a8a
commit bc9e91b9e9
4 files changed
+1 -53

No files matched your search

+1 -4
View File
@@ -314,10 +314,7 @@ pri func decoder.decode_id?(dst base.io_writer, src base.io_reader)() {
in.src.mark()
io_bind (in.src) {
in.src.set_limit(l:block_size)
// TODO: remove the dummy param. It's needed for now so that
// writeSaveExprDerivedVars updates e.g. the b_rptr_src derived
// variables.
var z base.status = try this.lzw.decode?(dst:in.dst, src:in.src, dummy:in.src)
var z base.status = try this.lzw.decode?(dst:in.dst, src:in.src)
}
if z.is_ok() {
break