summaryrefslogtreecommitdiff
path: root/snappy.cc
diff options
context:
space:
mode:
authorVictor Costan <costan@google.com>2022-09-29 09:46:03 -0700
committerVictor Costan <costan@google.com>2022-09-29 09:56:09 -0700
commita5054767929fb750adff8248c6dc719f1adb135c (patch)
treefe229afa2d3b496cb30ee913af2545e19d85ea36 /snappy.cc
parent9758c9dfd744f252bf3351c1a212e05c9f7fc857 (diff)
downloadsnappy-git-a5054767929fb750adff8248c6dc719f1adb135c.tar.gz
Test: fix build error.fix_build
Diffstat (limited to 'snappy.cc')
-rw-r--r--snappy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/snappy.cc b/snappy.cc
index 5457377..63c8432 100644
--- a/snappy.cc
+++ b/snappy.cc
@@ -2041,7 +2041,7 @@ size_t CompressFromIOVec(const struct iovec* iov, size_t iov_cnt,
std::string* compressed) {
// Compute the number of bytes to be compressed.
size_t uncompressed_length = 0;
- for (int i = 0; i < iov_cnt; ++i) {
+ for (size_t i = 0; i < iov_cnt; ++i) {
uncompressed_length += iov[i].iov_len;
}