Skip to content

Commit 3231cee

Browse files
committed
fix CTFE cycle
1 parent 5e2b3c7 commit 3231cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/int/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ pub trait Int:
8484

8585
macro_rules! int_impl_common {
8686
($ty:ty) => {
87-
const BITS: u32 = <Self>::BITS;
87+
const BITS: u32 = <Self as Int>::ZERO.count_zeros();
8888
const SIGNED: bool = Self::MIN != Self::ZERO;
8989

9090
const ZERO: Self = 0;

0 commit comments

Comments
 (0)