Skip to content

Commit c7203c3

Browse files
Fix Werror=sign-compare
1 parent b159137 commit c7203c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/atomic_queue/atomic_queue.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ class AtomicQueueCommon {
334334
}
335335

336336
bool was_full() const noexcept {
337-
return was_size() >= static_cast<int>(static_cast<Derived const&>(*this).size_);
337+
return was_size() >= capacity();
338338
}
339339

340340
unsigned was_size() const noexcept {

0 commit comments

Comments
 (0)