diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2016-10-17 22:00:31 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2016-10-17 22:00:31 -0400 |
| commit | 54d17c7361dc97313ca0ad54bf07420e33a735c0 (patch) | |
| tree | e61a6f7451df5f1bb280d7e0bab21b7100551ac3 /integer.cpp | |
| parent | b7423a3bf73aef511ff310631955ff378c6fee7e (diff) | |
| download | cryptopp-git-54d17c7361dc97313ca0ad54bf07420e33a735c0.tar.gz | |
Updated CRYPTOPP_ASSERT based on comments
Also see https://github.com/weidai11/cryptopp/commit/399a1546de71f41598c15edada28e7f0d616f541#commitcomment-19448453
Diffstat (limited to 'integer.cpp')
| -rw-r--r-- | integer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/integer.cpp b/integer.cpp index e1d59f8b..e4d7993c 100644 --- a/integer.cpp +++ b/integer.cpp @@ -2637,7 +2637,7 @@ static inline void AtomicDivide(word *Q, const word *A, const word *B) Q[1] = SubatomicDivide(T+1, B[0], B[1]);
Q[0] = SubatomicDivide(T, B[0], B[1]);
-#if CRYPTOPP_DEBUG
+#if defined(CRYPTOPP_DEBUG)
// multiply quotient and divisor and add remainder, make sure it equals dividend
CRYPTOPP_ASSERT(!T[2] && !T[3] && (T[1] < B[1] || (T[1]==B[1] && T[0]<B[0])));
word P[4];
@@ -2656,7 +2656,7 @@ static inline void AtomicDivide(word *Q, const word *A, const word *B) Q[0] = q.GetLowHalf();
Q[1] = q.GetHighHalf();
-#if CRYPTOPP_DEBUG
+#if defined(CRYPTOPP_DEBUG)
if (B[0] || B[1])
{
// multiply quotient and divisor and add remainder, make sure it equals dividend
|
