]> git.ipfire.org Git - thirdparty/openssl.git/commit
threads_win: fix improper cast to long * instead of LONG *
authorGeorgi Valkov <gvalkov@gmail.com>
Tue, 3 Sep 2024 07:13:34 +0000 (10:13 +0300)
committerTomas Mraz <tomas@openssl.org>
Thu, 5 Sep 2024 15:12:00 +0000 (17:12 +0200)
commit8048a8a8a069a3fb3ac687719e9174608ee7f052
tree694f05cfa5390d671cf299d05292e68fcc0f9bf6
parentd0ee8ada4dd12c17f7990feac17493ec1f931849
threads_win: fix improper cast to long * instead of LONG *

InterlockedExchangeAdd expects arguments of type LONG *, LONG
but the int arguments were improperly cast to long *, long

Note:
- LONG is always 32 bit
- long is 32 bit on Win32 VC x86/x64 and MingW-W64
- long is 64 bit on cygwin64

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25360)

(cherry picked from commit b0ed90cc30a573acb9b27186babc616be482afcb)
crypto/threads_win.c