From 20ddfe78e9ddc0aba8208616e1b0b33cb12f77f5 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Mon, 29 Jan 2024 10:14:30 +0000 Subject: [PATCH] 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 Reviewed-by: Hugo Landau (Merged from https://github.com/openssl/openssl/pull/23415) --- include/internal/refcount.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1