fixed encoder gen
This commit is contained in:
parent
ff99c6e3ce
commit
ead016ea3a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue