summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2024-01-29 10:14:30 +0000
committerMatt Caswell <matt@openssl.org>2024-01-31 10:24:50 +0000
commit20ddfe78e9ddc0aba8208616e1b0b33cb12f77f5 (patch)
treef8c2245b18a96b6ea284371f3acef20269788ead /include
parent5de8c49d6c019ad93149871989b755b5cc7b821c (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)
Diffstat (limited to 'include')
-rw-r--r--include/internal/refcount.h2
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;