We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e2b3c7 commit 3231ceeCopy full SHA for 3231cee
src/int/mod.rs
@@ -84,7 +84,7 @@ pub trait Int:
84
85
macro_rules! int_impl_common {
86
($ty:ty) => {
87
- const BITS: u32 = <Self>::BITS;
+ const BITS: u32 = <Self as Int>::ZERO.count_zeros();
88
const SIGNED: bool = Self::MIN != Self::ZERO;
89
90
const ZERO: Self = 0;
0 commit comments