diff options
Diffstat (limited to 'openpgp/src/packet/header')
-rw-r--r-- | openpgp/src/packet/header/ctb.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/packet/header/ctb.rs b/openpgp/src/packet/header/ctb.rs index 6e43fecf..fbe81a9a 100644 --- a/openpgp/src/packet/header/ctb.rs +++ b/openpgp/src/packet/header/ctb.rs @@ -137,9 +137,9 @@ impl CTBOld { BodyLength::Full(l) => { match l { // One octet length. - 0 ... 0xFF => PacketLengthType::OneOctet, + 0 ..= 0xFF => PacketLengthType::OneOctet, // Two octet length. - 0x1_00 ... 0xFF_FF => PacketLengthType::TwoOctets, + 0x1_00 ..= 0xFF_FF => PacketLengthType::TwoOctets, // Four octet length, _ => PacketLengthType::FourOctets, } |