Skip to content

Commit 3d498b6

Browse files
committed
v0.2.2 RC2
1 parent a33cce5 commit 3d498b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/high_low.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub(crate) fn power2round<const K: usize>(r: &[R; K]) -> ([R; K], [R; K]) {
1717
// 2: r0 ← r+ mod±2^d
1818
// 3: return ((r+ − r0)/2^d, r0)
1919
debug_assert!(
20-
r.iter().flat_map(|row| row.0).all(|element| 0 <= element && element < Q),
20+
r.iter().flat_map(|row| row.0).all(|element| (0..Q).contains(&element)),
2121
"power2round input"
2222
);
2323
let r_1: [R; K] = core::array::from_fn(|k| {

0 commit comments

Comments
 (0)