Changed int to size_t

This commit is contained in:
Alexander Damian
2020-02-03 22:04:50 -05:00
parent bda2f4156d
commit fbbd5bc5a6

View File

@@ -771,7 +771,7 @@ void BufferedProducer<BufferType, Allocator>::clear() {
template <typename BufferType, typename Allocator> template <typename BufferType, typename Allocator>
size_t BufferedProducer<BufferType, Allocator>::get_buffer_size() const { size_t BufferedProducer<BufferType, Allocator>::get_buffer_size() const {
int size = 0; size_t size = 0;
{ {
std::lock_guard<std::mutex> lock(mutex_); std::lock_guard<std::mutex> lock(mutex_);
size += messages_.size(); size += messages_.size();