Generate C code for an_array[:].

This commit is contained in:
Nigel Tao committed 2017-09-23 10:51:04 +10:00
1 parent f107ec155d
commit a9f12c23a4
6 files changed
+70 -16

No files matched your search

+1 -2
View File
@@ -114,8 +114,7 @@ pub func decoder.decode?(dst writer1, src reader1)() {
var written[] u8 = in.dst.slice()
if written.length() >= (32 * 1024) {
written = written.suffix(up_to:32 * 1024)
// TODO: change this.history to this.history[:].
this.history.copy_from(s:written)
this.history[:].copy_from(s:written)
this.history_index = 32 * 1024
} else {
// TODO: fill part of the history.