We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9cfda6c commit 062fb97Copy full SHA for 062fb97
1 file changed
lightweightsemaphore.h
@@ -401,10 +401,10 @@ class LightweightSemaphore
401
}
402
403
404
- ssize_t availableApprox() const
+ std::size_t availableApprox() const
405
{
406
ssize_t count = m_count.load(std::memory_order_relaxed);
407
- return count > 0 ? count : 0;
+ return count > 0 ? static_cast<std::size_t>(count) : 0;
408
409
};
410
0 commit comments