projects
/
dnssec-prover
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d725ca
)
Fix const build error in the previous commits
author
Matt Corallo
<git@bluematt.me>
Tue, 7 May 2024 17:00:38 +0000
(17:00 +0000)
committer
Matt Corallo
<git@bluematt.me>
Tue, 7 May 2024 17:01:17 +0000
(17:01 +0000)
src/crypto/bigint.rs
patch
|
blob
|
history
diff --git
a/src/crypto/bigint.rs
b/src/crypto/bigint.rs
index 7c187ca272284d5df13d60ad0e34db14a37efc39..4bd6f372aef071991411c9cf6ee1f581a4935653 100644
(file)
--- a/
src/crypto/bigint.rs
+++ b/
src/crypto/bigint.rs
@@
-1017,7
+1017,7
@@
impl<M: PrimeModulus<U256>> U256Mod<M> {
if t1_extra_bit || slice_greater_than(&t1_on_r, &M::PRIME.0) {
let underflow;
(res, underflow) = sub_4(&t1_on_r, &M::PRIME.0);
- debug_assert
_eq!(t1_extra_bit,
underflow,
+ debug_assert
!(t1_extra_bit ==
underflow,
"The number (t1_extra_bit, t1_on_r) is at most 2m-1, so underflowing t1_on_r - m should happen iff t1_extra_bit is set.");
} else {
copy_from_slice!(res, 0, 4, t1_on_r);