From: Andy Polyakov Date: Sat, 22 Oct 2005 20:17:01 +0000 (+0000) Subject: Eliminate gcc warning in bn_mont.c. X-Git-Tag: OpenSSL_0_9_8k^2~1754 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2012f9b8253f72aa6259b6c42b56aead25a4e33;p=oweals%2Fopenssl.git Eliminate gcc warning in bn_mont.c. --- diff --git a/crypto/bn/bn_mont.c b/crypto/bn/bn_mont.c index f035c18973..7a8b67ba55 100644 --- a/crypto/bn/bn_mont.c +++ b/crypto/bn/bn_mont.c @@ -334,8 +334,8 @@ int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) if (!(BN_set_bit(R,2*BN_BITS2))) goto err; tmod.top=0; - if (buf[0] = mod->d[0]) tmod.top=1; - if (buf[1] = mod->top>1 ? mod->d[1] : 0) tmod.top=2; + if ((buf[0] = mod->d[0])) tmod.top=1; + if ((buf[1] = mod->top>1 ? mod->d[1] : 0)) tmod.top=2; if ((BN_mod_inverse(Ri,R,&tmod,ctx)) == NULL) goto err;