Have copy_from return the number of bytes copied.

This commit is contained in:
Nigel Tao committed 2017-09-28 17:27:34 +10:00
1 parent a9bdeee7c1
commit f1643be221
9 files changed
+38 -28

No files matched your search

+1 -1
View File
@@ -118,7 +118,7 @@ pub func decoder.decode?(dst writer1, src reader1)() {
this.history_index = 32 * 1024
} else {
// TODO: fill part of the history.
this.history[this.history_index & 0x7FFF:].copy_from(s:written)
var n u64 = this.history[this.history_index & 0x7FFF:].copy_from(s:written)
}
}
return z