Skip to content
Commit 8048a8a8 authored by Georgi Valkov's avatar Georgi Valkov Committed by Tomas Mraz
Browse files

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: default avatarGeorgi Valkov <gvalkov@gmail.com>

Reviewed-by: default avatarTom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: default avatarNeil Horman <nhorman@openssl.org>
Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
Reviewed-by: default avatarTomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/25360)

(cherry picked from commit b0ed90cc)
parent d0ee8ada
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment