Skip to content

Commit

Permalink
Makes cargo clippy happy.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lichtso committed Dec 30, 2024
1 parent cefe613 commit 6cd8637
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion clippy.toml

This file was deleted.

2 changes: 1 addition & 1 deletion src/insn_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl<I: Instruction> IntoBytes for &I {
fn into_bytes(self) -> Self::Bytes {
vec![
self.opt_code_byte(),
self.get_src() << 4 | self.get_dst(),
(self.get_src() << 4) | self.get_dst(),
self.get_off() as u8,
(self.get_off() >> 8) as u8,
self.get_imm() as u8,
Expand Down
2 changes: 1 addition & 1 deletion src/jit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ impl<'a, C: ContextObject> JitCompiler<'a, C> {
}
}

self.emit_ins(X86Instruction::alu_immediate(size, 0xf7, 0x4 | (division as u8) << 1 | signed as u8, REGISTER_SCRATCH, 0, None));
self.emit_ins(X86Instruction::alu_immediate(size, 0xf7, 0x4 | ((division as u8) << 1) | signed as u8, REGISTER_SCRATCH, 0, None));

if dst != RDX {
if alt_dst {
Expand Down

0 comments on commit 6cd8637

Please sign in to comment.