Skip to content

Commit

Permalink
Prevent some unnecessary cast warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
CensoredUsername committed Nov 18, 2024
1 parent cdbabfb commit 95fcae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/src/arch/aarch64/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ fn handle_special_immediates(offset: u8, special: SpecialComm, imm: &syn::Expr,
::dynasmrt::aarch64::immediate_out_of_range_unsigned_32(!value);
}

((0xFFFFu32 & (value >> offset)) as u32) | (offset << 12)
(0xFFFFu32 & (value >> offset)) | (offset << 12)
}
}));
return Ok(());
Expand Down Expand Up @@ -755,7 +755,7 @@ fn handle_special_immediates(offset: u8, special: SpecialComm, imm: &syn::Expr,
::dynasmrt::aarch64::immediate_out_of_range_unsigned_32(value);
}

((0xFFFFu32 & (value >> offset)) as u32) | (offset << 12)
(0xFFFFu32 & (value >> offset)) | (offset << 12)
}
}));
return Ok(());
Expand Down

0 comments on commit 95fcae5

Please sign in to comment.