diff options
author | Kochise <david.koch@9online.fr> | 2020-03-16 20:04:04 +0100 |
---|---|---|
committer | Tomas Mraz <tmraz@fedoraproject.org> | 2020-04-17 13:21:13 +0200 |
commit | 7da7b27eec58d1efc7012f002c45ddbdd61a5e79 (patch) | |
tree | 058414e4feca5ed17237a82c7d6ae1688f9c8e0d /crypto/threads_win.c | |
parent | doc: note that the FIPS provider contains some non-approved algorithms. (diff) | |
download | openssl-7da7b27eec58d1efc7012f002c45ddbdd61a5e79.tar.xz openssl-7da7b27eec58d1efc7012f002c45ddbdd61a5e79.zip |
Windows: Add type casting in CRYPTO_atomic_add to remove warning
CLA: trivial
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11337)
Diffstat (limited to 'crypto/threads_win.c')
-rw-r--r-- | crypto/threads_win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/threads_win.c b/crypto/threads_win.c index 43bd0f51d9..4d95cd3fbb 100644 --- a/crypto/threads_win.c +++ b/crypto/threads_win.c @@ -155,7 +155,7 @@ int CRYPTO_THREAD_compare_id(CRYPTO_THREAD_ID a, CRYPTO_THREAD_ID b) int CRYPTO_atomic_add(int *val, int amount, int *ret, CRYPTO_RWLOCK *lock) { - *ret = InterlockedExchangeAdd(val, amount) + amount; + *ret = (int)InterlockedExchangeAdd((long volatile *)val, (long)amount) + amount; return 1; } |