Make endwhile mandatory for nameless loops

This commit is contained in:
Nigel Tao committed 2020-03-25 21:40:00 +11:00
1 parent 3c38f671fa
commit 58351d44da
15 files changed
+138 -136

No files matched your search

+2 -2
View File
@@ -341,7 +341,7 @@ pri func decoder.decode_huffman_fast!(dst: base.io_writer, src: base.io_reader)
// Copy from args.dst.
args.dst.copy_n32_from_history_fast!(n: length, distance: (dist_minus_1 + 1))
break
}
} endwhile
} endwhile.loop
// Ensure n_bits < 8 by rewindng args.src, if we loaded too many of its
@@ -363,7 +363,7 @@ pri func decoder.decode_huffman_fast!(dst: base.io_writer, src: base.io_reader)
} else {
return "#internal error: inconsistent I/O"
}
}
} endwhile
this.bits = bits & (((1 as base.u32) << n_bits) - 1)
this.n_bits = n_bits