mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-08-01 13:37:48 +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…
Add table
Add a link
Reference in a new issue