Skip to content

Commit 1f10a3e

Browse files
committed
Improve strip trailing int3 instructions
1 parent 05c1d1c commit 1f10a3e

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(|i| i.opcode == iced_x86::Mnemonic::Int3 as u16).unwrap_or(false) {
186+
while out.last().map_or(false, |i| i.opcode == iced_x86::Mnemonic::Int3 as u16) {
187187
out.pop();
188188
}
189189
}

0 commit comments

Comments
 (0)