Commit c4f82139 authored by Harald Sitter's avatar Harald Sitter 🏳️‍🌈
Browse files

smb: fix sequence-point warning

tail was being modified twice
parent e6b1724c
...@@ -72,7 +72,7 @@ TransferSegment *TransferRingBuffer::pop() ...@@ -72,7 +72,7 @@ TransferSegment *TransferRingBuffer::pop()
void TransferRingBuffer::unpop() void TransferRingBuffer::unpop()
{ {
std::unique_lock<std::mutex> lock(m_mutex); std::unique_lock<std::mutex> lock(m_mutex);
tail = ++tail % m_capacity; tail = (tail + 1) % m_capacity;
m_cond.notify_all(); m_cond.notify_all();
} }
......
Supports Markdown
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