diff options
Diffstat (limited to 'library/stdarch/crates/std_detect/src/detect/bit.rs')
| -rw-r--r-- | library/stdarch/crates/std_detect/src/detect/bit.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/stdarch/crates/std_detect/src/detect/bit.rs b/library/stdarch/crates/std_detect/src/detect/bit.rs index 578f0b16b74..6f06c5523e4 100644 --- a/library/stdarch/crates/std_detect/src/detect/bit.rs +++ b/library/stdarch/crates/std_detect/src/detect/bit.rs @@ -4,6 +4,6 @@ #[allow(dead_code)] #[inline] pub(crate) fn test(x: usize, bit: u32) -> bool { - debug_assert!(bit < 32, "bit index out-of-bounds"); + debug_assert!(bit < usize::BITS, "bit index out-of-bounds"); x & (1 << bit) != 0 } |
