diff options
Diffstat (limited to 'libtransport/src/hicn/transport/utils/ring_buffer.h')
-rw-r--r-- | libtransport/src/hicn/transport/utils/ring_buffer.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/utils/ring_buffer.h b/libtransport/src/hicn/transport/utils/ring_buffer.h index 52bcd81c4..9babe56bd 100644 --- a/libtransport/src/hicn/transport/utils/ring_buffer.h +++ b/libtransport/src/hicn/transport/utils/ring_buffer.h @@ -86,7 +86,7 @@ bool CircularFifo<Element, Size>::push(Element&& item) { // the tail must be accessed with at least acquire template <typename Element, std::size_t Size> bool CircularFifo<Element, Size>::pop(Element& item) { - const auto current_head = head_.load(std::memory_order_relaxed); + const size_t current_head = head_.load(std::memory_order_relaxed); if (current_head == tail_.load(std::memory_order_acquire)) { return false; // empty queue } |