Index: src/circular-queue-inl.h |
diff --git a/src/circular-queue-inl.h b/src/circular-queue-inl.h |
index 962b069fb0fb481b7d1394ffc9e473299641e136..90ab0f5c9bcb40861db9bb4e56d7406bd0e4ce11 100644 |
--- a/src/circular-queue-inl.h |
+++ b/src/circular-queue-inl.h |
@@ -38,7 +38,8 @@ template<typename Record> |
CircularQueue<Record>::CircularQueue(int desired_buffer_size_in_bytes) |
: buffer_(NewArray<Record>(desired_buffer_size_in_bytes / sizeof(Record))), |
buffer_end_(buffer_ + desired_buffer_size_in_bytes / sizeof(Record)), |
- enqueue_semaphore_(OS::CreateSemaphore((buffer_end_ - buffer_) - 1)), |
+ enqueue_semaphore_( |
+ OS::CreateSemaphore(static_cast<int>(buffer_end_ - buffer_) - 1)), |
enqueue_pos_(buffer_), |
dequeue_pos_(buffer_) { |
// To be able to distinguish between a full and an empty queue |