]> git.ipfire.org Git - thirdparty/openssl.git/commit
threads_win: fix improper cast to long * instead of LONG *
authorGeorgi Valkov <gvalkov@gmail.com>
Fri, 19 Jul 2024 21:37:21 +0000 (00:37 +0300)
committerTomas Mraz <tomas@openssl.org>
Thu, 5 Sep 2024 15:09:50 +0000 (17:09 +0200)
commit71ae46618108a095e6e10a875a59afb526548d3b
treefa9f866ee5d852791e2f552f4f429a53127ae04b
parent9f4d8c63e8cd4968b04c7696467b6f29b90722ef
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: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24941)
crypto/threads_win.c