diff options
author | Andy Polyakov <appro@openssl.org> | 2008-12-29 12:35:49 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2008-12-29 12:35:49 +0000 |
commit | 5cabcf96e77bcf6d23bfb3ec32c9ea37100578c6 (patch) | |
tree | 2c2e0f123d4bc953e75e9919488c92b78b5c75b4 /crypto/bn/bn_lib.c | |
parent | 85e878f224f16d21c09b1916c72ba0458335df7b (diff) |
Fix "possible loss of data" Win64 compiler warnings.
Diffstat (limited to 'crypto/bn/bn_lib.c')
-rw-r--r-- | crypto/bn/bn_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c index 0c6e7e5964..2564c332b3 100644 --- a/crypto/bn/bn_lib.c +++ b/crypto/bn/bn_lib.c @@ -763,7 +763,7 @@ int BN_is_bit_set(const BIGNUM *a, int n) i=n/BN_BITS2; j=n%BN_BITS2; if (a->top <= i) return 0; - return(((a->d[i])>>j)&((BN_ULONG)1)); + return(((a->d[i])>>j)&((BN_ULONG)1)==1); } int BN_mask_bits(BIGNUM *a, int n) |