diff --git a/sf-stream/src/FastQueue.cpp b/sf-stream/src/FastQueue.cpp index 1a67664..e8f5987 100644 --- a/sf-stream/src/FastQueue.cpp +++ b/sf-stream/src/FastQueue.cpp @@ -72,7 +72,7 @@ void FastQueue::commit() } write_slot_id_++; - write_slot_id_ %= n_slots_; + write_slot_id_ = write_slot_id_ % n_slots_; } template @@ -99,7 +99,7 @@ void FastQueue::release() } read_slot_id_++; - read_slot_id_ %= n_slots_; + read_slot_id_ = read_slot_id_ % n_slots_; } template class FastQueue;