]> git.bitcoin.ninja Git - dnssec-prover/commitdiff
Fix const build error in the previous commits
authorMatt Corallo <git@bluematt.me>
Tue, 7 May 2024 17:00:38 +0000 (17:00 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 7 May 2024 17:01:17 +0000 (17:01 +0000)
src/crypto/bigint.rs

index 7c187ca272284d5df13d60ad0e34db14a37efc39..4bd6f372aef071991411c9cf6ee1f581a4935653 100644 (file)
@@ -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);