Skip to content

Commit

Permalink
chore: lint the code style
Browse files Browse the repository at this point in the history
  • Loading branch information
felicityin committed Dec 28, 2024
1 parent 468a66d commit 63aacac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emulator/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ impl InstrumentedState {
return rt << shamt; // sll
} else if fun == 0x02 {
if (insn >> 21) & 0x1F == 1 {
return rt >> shamt | rt << (32 - shamt); // ror
return (rt >> shamt) | (rt << (32 - shamt)); // ror
} else if (insn >> 21) & 0x1F == 0 {
return rt >> shamt; // srl
}
Expand Down

0 comments on commit 63aacac

Please sign in to comment.