mirror of
https://github.com/uutils/coreutils
synced 2024-11-17 18:28:18 +00:00
factor::numeric::inv_mod_u64: Provide a more-helpful error message
This commit is contained in:
parent
02b419db5f
commit
3a90e31307
1 changed files with 1 additions and 1 deletions
|
@ -175,7 +175,7 @@ impl Arithmetic for Montgomery {
|
|||
// extended Euclid algorithm
|
||||
// precondition: a is odd
|
||||
pub(crate) fn inv_mod_u64(a: u64) -> u64 {
|
||||
assert!(a % 2 == 1);
|
||||
assert!(a % 2 == 1, "{} is not odd", a);
|
||||
let mut t = 0u64;
|
||||
let mut newt = 1u64;
|
||||
let mut r = 0u64;
|
||||
|
|
Loading…
Reference in a new issue