From 4e8bde6f046c0a54fcba5a9cdc78a7412759f7c7 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 24 Sep 2007 00:45:16 +0000 Subject: [PATCH] remove branch in assert --- integer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integer.cpp b/integer.cpp index bd186d02..e8c22494 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];