Commit f723a124 authored by Mark Andrews's avatar Mark Andrews
Browse files

Undo implict promotion to 64 bits in our Windows implementation of...

Undo implict promotion to 64 bits in our Windows implementation of atomic_load_explicit() by casting to uint_fast32_t.
parent b7ac47c4
Pipeline #5079 passed with stages
in 8 minutes and 30 seconds
......@@ -47,9 +47,13 @@ typedef atomic_uint_fast32_t isc_refcount_t;
* \brief Returns current number of references.
* \param[in] ref pointer to reference counter.
* \returns current value of reference counter.
*
* Undo implict promotion to 64 bits in our Windows implementation of
* atomic_load_explicit() by casting to uint_fast32_t.
*/
#define isc_refcount_current(target) \
atomic_load_explicit(target, memory_order_relaxed)
(uint_fast32_t)atomic_load_explicit(target, memory_order_relaxed)
/** \def isc_refcount_destroy(ref)
* \brief a destructor that makes sure that all references were cleared.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment