From: Hugo Landau Date: Mon, 22 May 2023 12:26:03 +0000 (+0100) Subject: Add note about Windows LONG X-Git-Tag: openssl-3.2.0-alpha1~771 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2c61e414332fa7162bb0f9ab991983e0d8cb438;p=thirdparty%2Fopenssl.git Add note about Windows LONG Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/20856) --- diff --git a/crypto/threads_win.c b/crypto/threads_win.c index 82137b530ae..8018e87b256 100644 --- a/crypto/threads_win.c +++ b/crypto/threads_win.c @@ -262,6 +262,7 @@ int CRYPTO_atomic_load_int(int *val, int *ret, CRYPTO_RWLOCK *lock) return 1; #else + /* On Windows, LONG is always the same size as int. */ *ret = (int)InterlockedOr((LONG volatile *)val, 0); return 1; #endif