]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/threads_win.c: type casted destination of InterlockedExchange{,64} calls
authorDeven Dighe <dvd8106@g.rit.edu>
Thu, 19 Mar 2026 13:54:21 +0000 (09:54 -0400)
committerEugene Syromiatnikov <esyr@openssl.org>
Sun, 22 Mar 2026 00:59:41 +0000 (01:59 +0100)
commitf913d98ac2cf8d28bbcf993dfe5d0d7d3d4f0345
treeadfb34a83d992b0d13d2bfa379a61733d8ebb0bf
parent68e4627b0b35d491b4c4b1dc99559b7fec6fa59b
crypto/threads_win.c: type casted destination of InterlockedExchange{,64} calls

Explicitly cast dst argument of InterlockedExchange{,64} calls
in CRYPTO_atomic_store{,_int}() to LONG{64,} volatile *, respectively,
to work around incompatible pointer type errors on 64-bit MinGW builds.

Initially Reported by Splediferous.

[esyr: massaged the commit message a bit]

CLA: trivial
Resolves: https://github.com/openssl/openssl/issues/30451
Fixes: cc7195da3038 "Make FIPS self test state access atomic"
Fixes: 7e45ac6891ad "Add CRYPTO_atomic_store api"
Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
MergeDate: Sun Mar 22 00:59:42 2026
(Merged from https://github.com/openssl/openssl/pull/30504)
crypto/threads_win.c