mirror of https://github.com/google/snappy.git
fix a signed/unsigned comparison warning
This commit is contained in:
parent
ed3b7b242b
commit
507e443927
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue