From 507e443927aea00595f21510e1ee98b982df26b0 Mon Sep 17 00:00:00 2001 From: Evan Klitzke Date: Sat, 22 Apr 2017 17:30:02 -0700 Subject: [PATCH] fix a signed/unsigned comparison warning --- snappy.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappy.cc b/snappy.cc index 90c0787..b421ce7 100644 --- a/snappy.cc +++ b/snappy.cc @@ -1423,7 +1423,7 @@ class SnappySinkAllocator { void Flush(size_t size) { size_t size_written = 0; size_t block_size; - for (int i = 0; i < blocks_.size(); ++i) { + for (size_t i = 0; i < blocks_.size(); ++i) { block_size = std::min(blocks_[i].size, size - size_written); dest_->AppendAndTakeOwnership(blocks_[i].data, block_size, &SnappySinkAllocator::Deleter, NULL);