Skip to content

Commit

Permalink
Fix compilation on Windows using icc
Browse files Browse the repository at this point in the history
The parameter list for CRYPTO_DOWN_REF for the icc on windows build was
incorrect.

This issue was introduced by 99fd5b2

Fixes #23414

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from #23415)

(cherry picked from commit 20ddfe7)
  • Loading branch information
mattcaswell committed Jan 31, 2024
1 parent a801d21 commit 88df4cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/internal/refcount.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 88df4cf

Please sign in to comment.