diff --git a/src/value.rs b/src/value.rs index f982b317..483d9511 100644 --- a/src/value.rs +++ b/src/value.rs @@ -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(())