]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add note about Windows LONG
authorHugo Landau <hlandau@openssl.org>
Mon, 22 May 2023 12:26:03 +0000 (13:26 +0100)
committerHugo Landau <hlandau@openssl.org>
Wed, 24 May 2023 09:34:55 +0000 (10:34 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20856)

crypto/threads_win.c

index 82137b530ae26465e4876ef9f841f76aaa6359ec..8018e87b2565e0149b76258e33c1cd21543e2633 100644 (file)
@@ -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