From 95fcae5348eb21e494df8c395548c210796be651 Mon Sep 17 00:00:00 2001 From: CensoredUsername Date: Mon, 18 Nov 2024 02:05:10 +0100 Subject: [PATCH] Prevent some unnecessary cast warnings. --- plugin/src/arch/aarch64/compiler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/arch/aarch64/compiler.rs b/plugin/src/arch/aarch64/compiler.rs index b388d1d73..e325ea997 100644 --- a/plugin/src/arch/aarch64/compiler.rs +++ b/plugin/src/arch/aarch64/compiler.rs @@ -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(()); @@ -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(());