When field specs got implemented correctly 0 stopped representing the
"special case" where we read a word without modifications. I just need
to make note that the F byte should be 5 for now in that case. Anything
that is unrepresentable should probably _also_ represent that case, so
63 would be a fine number as well.
} else {
l_clamp = l_clamp - 1;
}
} else {
l_clamp = l_clamp - 1;
}
- let r_clamp = (fs.r - 1) % 5;
+ let r_clamp = fs.r % 6;
let mut bytes = [MixBit::default(); 5];
let mut bytes = [MixBit::default(); 5];
- for n in l_clamp..=r_clamp {
+ for n in l_clamp..r_clamp {
bytes[n] = self.bytes[n];
}
Word { sign, bytes }
bytes[n] = self.bytes[n];
}
Word { sign, bytes }
MixBit { v: 0 },
MixBit { v: 0 },
MixBit { v: 0 },
MixBit { v: 0 },
MixBit { v: 0 },
MixBit { v: 0 },