summaryrefslogtreecommitdiff
path: root/snappy_benchmark.cc
diff options
context:
space:
mode:
Diffstat (limited to 'snappy_benchmark.cc')
-rw-r--r--snappy_benchmark.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/snappy_benchmark.cc b/snappy_benchmark.cc
index 0590142..28570dd 100644
--- a/snappy_benchmark.cc
+++ b/snappy_benchmark.cc
@@ -164,7 +164,7 @@ void BM_UIOVecSource(benchmark::State& state) {
struct iovec iov[kNumEntries];
size_t used_so_far = 0;
for (int i = 0; i < kNumEntries; ++i) {
- iov[i].iov_base = contents.data() + used_so_far;
+ iov[i].iov_base = const_cast<char*>(contents.data()) + used_so_far;
if (used_so_far == contents.size()) {
iov[i].iov_len = 0;
continue;