From 8366e10ffcb9a4269e90565d17f8440f40e30166 Mon Sep 17 00:00:00 2001 From: Islam AbdelRahman Date: Wed, 15 Jun 2016 00:24:33 -0700 Subject: [PATCH] Fix clang build Summary: Fix clang build Test Plan: USE_CLANG=1 make check -j64 Subscribers: andrewkr, dhruba Differential Revision: https://reviews.facebook.net/D59667 --- table/block.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {