summaryrefslogtreecommitdiff
path: root/integer.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-09-24 00:45:16 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2007-09-24 00:45:16 +0000
commit5b70f0e84d78f5e57805ce2ea3b9e123bab6cc9b (patch)
tree7329a05d96716741ca2a3456e8caca831589e9ed /integer.cpp
parent982ba6fa712d44275c2541b6b9badf489cf9eda6 (diff)
downloadcryptopp-5b70f0e84d78f5e57805ce2ea3b9e123bab6cc9b.tar.gz
remove branch in assert
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@397 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'integer.cpp')
-rw-r--r--integer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/integer.cpp b/integer.cpp
index bd186d0..e8c2249 100644
--- a/integer.cpp
+++ b/integer.cpp
@@ -2310,7 +2310,7 @@ void MontgomeryReduce(word *R, word *T, word *X, const word *M, const word *U, s
word borrow = Subtract(T, X+N, T, N);
// defend against timing attack by doing this Add even when not needed
word carry = Add(T+N, T, M, N);
- assert(carry || !borrow);
+ assert(carry | !borrow);
CopyWords(R, T + ((0-borrow) & N), N);
#elif 0
const word u = 0-U[0];