mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +00:00
Fix debug_assert! range in Scalar::to_radix_2w_size_hint().
This commit is contained in:
parent
c01bd780dc
commit
ca1f730790
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue