fix a signed/unsigned comparison warning

This commit is contained in:
Evan Klitzke 2017-04-22 17:30:02 -07:00
parent ed3b7b242b
commit 507e443927
1 changed files with 1 additions and 1 deletions

View File

@ -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<size_t>(blocks_[i].size, size - size_written);
dest_->AppendAndTakeOwnership(blocks_[i].data, block_size,
&SnappySinkAllocator::Deleter, NULL);