Skip to content

Commit

Permalink
Merge #250: Fix value decoding from padded encoding
Browse files Browse the repository at this point in the history
de99f96 fix: Typo (Christian Lewe)

Pull request description:

  Fix a typo that was introduced in #249

ACKs for top commit:
  apoelstra:
    ACK de99f96 successfully ran local tests; oops

Tree-SHA512: 5f36aba61cf4f66a1da83ce591e04531937f5b3de2826fff435e9dcc06b515033cae84b5fe16b7a74430895d61fc26a57d0bf3fe4a27b6d8eb75f5a488146e59
  • Loading branch information
apoelstra committed Sep 28, 2024
2 parents aec33a5 + de99f96 commit 0594aaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ impl Padding for PaddedEncoding {
ty_l: &Final,
ty_r: &Final,
) -> Result<(), EarlyEndOfStreamError> {
for _ in 0..ty_l.pad_left(ty_r) {
for _ in 0..ty_l.pad_right(ty_r) {
let _padding = bits.next().ok_or(EarlyEndOfStreamError)?;
}
Ok(())
Expand Down

0 comments on commit 0594aaf

Please sign in to comment.