diff options
| author | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-09-28 00:56:02 -0400 |
|---|---|---|
| committer | Amanieu d'Antras <amanieu@gmail.com> | 2024-09-30 13:00:24 -0400 |
| commit | 0760ed6ca74230c76e6458494c16bb323a0f6be4 (patch) | |
| tree | 20c3ce34c215d91b24bc510e51c3909c04224649 /library/stdarch/crates/std_detect/src/detect/cache.rs | |
| parent | 8a68450e253c76c1f5297432bc399651cdf01847 (diff) | |
| download | rust-0760ed6ca74230c76e6458494c16bb323a0f6be4.tar.gz rust-0760ed6ca74230c76e6458494c16bb323a0f6be4.zip | |
Minor linting
Diffstat (limited to 'library/stdarch/crates/std_detect/src/detect/cache.rs')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/cache.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
