diff --git a/table/block.cc b/table/block.cc index 8b08ebbc6..ecc3e4417 100644 --- a/table/block.cc +++ b/table/block.cc @@ -131,7 +131,7 @@ void BlockIter::Prev() { } // Loop until end of current entry hits the start of original entry } while (NextEntryOffset() < original); - prev_entries_idx_ = prev_entries_.size() - 1; + prev_entries_idx_ = static_cast(prev_entries_.size()) - 1; } void BlockIter::Seek(const Slice& target) {