Fix debug_assert! range in Scalar::to_radix_2w_size_hint().

This commit is contained in:
Isis Lovecruft 2020-01-03 23:56:30 +00:00
parent c01bd780dc
commit ca1f730790
No known key found for this signature in database
GPG key ID: AB41313533E8E812

View file

@ -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 {