We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a76845c + f9c3bdc commit 65b1f88Copy full SHA for 65b1f88
src/internal_math.rs
@@ -31,7 +31,7 @@ impl Barrett {
31
fn new(m: u32) -> Barrett {
32
Barrett {
33
_m: m,
34
- im: (-1i64 as u64) / (m as u64) + 1,
+ im: (-1i64 as u64 / m as u64).wrapping_add(1),
35
}
36
37
0 commit comments