fixed encoder gen

This commit is contained in:
Ellie 2019-06-15 02:02:16 +00:00
parent ff99c6e3ce
commit ead016ea3a
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ fn streamcoder_gen() -> StreamCoder {
let mut a:usize = 0;
let mut b:usize = 0;
while a < 256 {
if b.count_ones() == b.count_zeros() {
if b.count_ones() == b.count_zeros()-4 {
output_a[a] = b as u16;
output_b[b] = a as u8;
a += 1;