Skip to content

Commit 65b1f88

Browse files
Merge remote-tracking branch 'origin/feature/internal_math' into feature/internal_math
2 parents a76845c + f9c3bdc commit 65b1f88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/internal_math.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ impl Barrett {
3131
fn new(m: u32) -> Barrett {
3232
Barrett {
3333
_m: m,
34-
im: (-1i64 as u64) / (m as u64) + 1,
34+
im: (-1i64 as u64 / m as u64).wrapping_add(1),
3535
}
3636
}
3737

0 commit comments

Comments
 (0)