Skip to content

Commit

Permalink
Fixed a mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisAccountHasBeenSuspended committed Aug 31, 2024
1 parent 02a0e8f commit b221795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm-rust/src/director/chunks/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl Bytecode {

pub fn get_opcode_name(mut id: u16) -> &'static str {
if id >= 0x40 {
id += 0x40 + (id & 0x40);
id = 0x40 + (id % 0x40);
}

if let Some(r) = opcode_names().get(&OpCode::from(id)) {
Expand Down

0 comments on commit b221795

Please sign in to comment.