Skip to content

Commit

Permalink
Fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
philipc committed Jun 29, 2024
1 parent 28265aa commit 4c7abb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/read/coff/section.rs
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ impl pe::ImageSectionHeader {
) -> read::Result<&'data [pe::ImageRelocation]> {
let mut pointer = self.pointer_to_relocations.get(LE).into();
let mut number: usize = self.number_of_relocations.get(LE).into();
if number == core::u16::MAX.into()
if number == u16::MAX.into()
&& self.characteristics.get(LE) & pe::IMAGE_SCN_LNK_NRELOC_OVFL != 0
{
// Extended relocations. Read first relocation (which contains extended count) & adjust
Expand Down

0 comments on commit 4c7abb9

Please sign in to comment.