diff options
author | Matt Caswell <matt@openssl.org> | 2024-01-29 10:14:30 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2024-01-31 10:25:18 +0000 |
commit | 88df4cf8801be3f9b54e318c418edee8de1ad1a8 (patch) | |
tree | 0cd8aa30057ac4c1296ab591c5101497b94817ff | |
parent | a801d21e0e941c268b8a6c81c54031c565145596 (diff) |
Fix compilation on Windows using icc
The parameter list for CRYPTO_DOWN_REF for the icc on windows build was
incorrect.
This issue was introduced by 99fd5b2b10
Fixes #23414
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23415)
(cherry picked from commit 20ddfe78e9ddc0aba8208616e1b0b33cb12f77f5)
-rw-r--r-- | include/internal/refcount.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/refcount.h b/include/internal/refcount.h index 4c9ab266d3..d23bbb9eb9 100644 --- a/include/internal/refcount.h +++ b/include/internal/refcount.h @@ -101,7 +101,7 @@ static __inline int CRYPTO_UP_REF(CRYPTO_REF_COUNT *refcnt, int *ret) return 1; } -static __inline int CRYPTO_DOWN_REF(CRYPTO_REF_COUNT *val, int *refcnt) +static __inline int CRYPTO_DOWN_REF(CRYPTO_REF_COUNT *refcnt, int *ret) { *ret = _InterlockedExchangeAdd((void *)&refcnt->val, -1) - 1; return 1; |