From: Matt Corallo Date: Tue, 7 May 2024 17:00:38 +0000 (+0000) Subject: Fix const build error in the previous commits X-Git-Tag: v0.5.4~12 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=b0d9ef96c759db62ec74347b700ac880c65d3f4d;p=dnssec-prover Fix const build error in the previous commits --- diff --git a/src/crypto/bigint.rs b/src/crypto/bigint.rs index 7c187ca..4bd6f37 100644 --- a/src/crypto/bigint.rs +++ b/src/crypto/bigint.rs @@ -1017,7 +1017,7 @@ impl> U256Mod { 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);