]> 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:11:37 +0000 (17:11 +0200)
commitb0ed90cc30a573acb9b27186babc616be482afcb
treeae0d7d2edf79954328e9cb5ac1cae8d16cc2e49e
parent961d7efb02387e032e1574968723eb71fc25a94c
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)
crypto/threads_win.c