From: Andy Polyakov Date: Wed, 24 Sep 2014 22:42:26 +0000 (+0200) Subject: crypto/bn/bn_nist.c: work around MSC ARM compiler bug. X-Git-Tag: OpenSSL_1_0_2-beta3~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec65b83d6568db494b17e155018d4a7bf9db5268;p=oweals%2Fopenssl.git crypto/bn/bn_nist.c: work around MSC ARM compiler bug. RT: 3541 Reviewed-by: Emilia Kasper (cherry picked from commit 8b07c005fe006044d0e4a795421447deca3c9f2c) --- diff --git a/crypto/bn/bn_nist.c b/crypto/bn/bn_nist.c index e22968d4a3..abb1570853 100644 --- a/crypto/bn/bn_nist.c +++ b/crypto/bn/bn_nist.c @@ -1088,9 +1088,9 @@ int BN_nist_mod_521(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, /* ... and right shift */ for (val=t_d[0],i=0; i>BN_NIST_521_RSHIFT; - val = t_d[i+1]; - t_d[i] = (tmp | val<>BN_NIST_521_RSHIFT | + (tmp=t_d[i+1])<>BN_NIST_521_RSHIFT; /* lower 521 bits */