From b0d9ef96c759db62ec74347b700ac880c65d3f4d Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 7 May 2024 17:00:38 +0000 Subject: [PATCH] Fix const build error in the previous commits --- src/crypto/bigint.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5