From 0760ed6ca74230c76e6458494c16bb323a0f6be4 Mon Sep 17 00:00:00 2001 From: Yuri Astrakhan Date: Sat, 28 Sep 2024 00:56:02 -0400 Subject: Minor linting --- library/stdarch/crates/std_detect/src/detect/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'library/stdarch/crates/std_detect/src') diff --git a/library/stdarch/crates/std_detect/src/detect/cache.rs b/library/stdarch/crates/std_detect/src/detect/cache.rs index 643e4da1948..cee07b0ec7e 100644 --- a/library/stdarch/crates/std_detect/src/detect/cache.rs +++ b/library/stdarch/crates/std_detect/src/detect/cache.rs @@ -179,7 +179,7 @@ cfg_if::cfg_if! { fn do_initialize(value: Initializer) { CACHE[0].initialize((value.0) as usize & Cache::MASK); CACHE[1].initialize((value.0 >> Cache::CAPACITY) as usize & Cache::MASK); - CACHE[2].initialize((value.0 >> 2 * Cache::CAPACITY) as usize & Cache::MASK); + CACHE[2].initialize((value.0 >> (2 * Cache::CAPACITY)) as usize & Cache::MASK); } // We only have to detect features once, and it's fairly costly, so hint to LLVM -- cgit 1.4.1-3-g733a5