Skip to content

Commit 79f8e0e

Browse files
committed
Improve strip trailing int3 instructions again
1 parent 1f10a3e commit 79f8e0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

objdiff-core/src/arch/x86.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl Arch for ArchX86 {
183183
}
184184
// Strip trailing int3 instructions (alignment padding) for x64
185185
if matches!(self.arch, Architecture::X86_64) {
186-
while out.last().map_or(false, |i| i.opcode == iced_x86::Mnemonic::Int3 as u16) {
186+
while out.last().is_some_and(|i| i.opcode == iced_x86::Mnemonic::Int3 as u16) {
187187
out.pop();
188188
}
189189
}

0 commit comments

Comments
 (0)