From 5b70f0e84d78f5e57805ce2ea3b9e123bab6cc9b Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 24 Sep 2007 00:45:16 +0000 Subject: remove branch in assert git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@397 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- integer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'integer.cpp') 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]; -- cgit v1.2.1