Skip to content

Commit

Permalink
Support rustc 1.77.0
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare committed Sep 23, 2024
1 parent e61a4d3 commit ce943e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/til/enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ impl EnumRaw {
let bytesize: u32 = match emsize {
0 if header.size_enum != 0 => header.size_enum.into(),
0 => return Err(anyhow!("BTE emsize is 0 without header")),
1..5 => 1u32 << (emsize - 1),
1..=4 => 1u32 << (emsize - 1),
5..=7 => return Err(anyhow!("BTE emsize with reserved values")),
_ => unreachable!(),
};
Expand Down

0 comments on commit ce943e1

Please sign in to comment.