| Index: src/circular-queue.cc
|
| diff --git a/src/circular-queue.cc b/src/circular-queue.cc
|
| index 3e32e4d2883e15c3f3af3ba598fa7c469b0283b5..0aea3435927491511ef72b56147949389250f79d 100644
|
| --- a/src/circular-queue.cc
|
| +++ b/src/circular-queue.cc
|
| @@ -74,7 +74,7 @@ SamplingCircularQueue::SamplingCircularQueue(size_t record_size_in_bytes,
|
| // The distance ensures that producer and consumer never step on
|
| // each other's chunks and helps eviction of produced data from
|
| // the CPU cache (having that chunk size is bigger than the cache.)
|
| - const int producer_consumer_distance = (2 * chunk_size_);
|
| + const size_t producer_consumer_distance = (2 * chunk_size_);
|
| consumer_pos_->dequeue_chunk_poll_pos = buffer_ + producer_consumer_distance;
|
| consumer_pos_->dequeue_pos = NULL;
|
| }
|
|
|