From ca1f730790957c2ea938951def365895136d020d Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Fri, 3 Jan 2020 23:56:30 +0000 Subject: [PATCH] Fix debug_assert! range in Scalar::to_radix_2w_size_hint(). --- src/scalar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scalar.rs b/src/scalar.rs index 21b801c..13a5ea6 100644 --- a/src/scalar.rs +++ b/src/scalar.rs @@ -989,7 +989,7 @@ impl Scalar { /// Returns a size hint indicating how many entries of the return /// value of `to_radix_2w` are nonzero. pub(crate) fn to_radix_2w_size_hint(w: usize) -> usize { - debug_assert!(w == 4 || w >= 6); + debug_assert!(w >= 4); debug_assert!(w <= 8); let digits_count = match w {