From 411c8e3d198cdc2d72751b39f4a005e024fc071f Mon Sep 17 00:00:00 2001 From: Poornima Chozhiyath Raman Date: Tue, 7 Jul 2015 15:21:17 -0700 Subject: [PATCH] Build fail fix Summary: Build fail fix. Type cast issues. Test Plan: compiled Reviewers: sdong, yhchiang Reviewed By: yhchiang Subscribers: dhruba Differential Revision: https://reviews.facebook.net/D41349 --- db/compaction_picker.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/db/compaction_picker.cc b/db/compaction_picker.cc index ec18498ce..81a7f0a25 100644 --- a/db/compaction_picker.cc +++ b/db/compaction_picker.cc @@ -45,8 +45,8 @@ uint64_t TotalCompensatedFileSize(const std::vector& files) { struct InputFileInfo { FileMetaData* f; - unsigned int level; - unsigned int index; + size_t level; + size_t index; }; // Used in universal compaction when trivial move is enabled. @@ -76,7 +76,7 @@ SmallestKeyHeap create_level_heap(Compaction* c, const Comparator* ucmp) { InputFileInfo input_file; - for (unsigned int l = 0; l < c->num_input_levels(); l++) { + for (size_t l = 0; l < c->num_input_levels(); l++) { if (c->num_input_files(l) != 0) { if (l == 0 && c->start_level() == 0) { for (size_t i = 0; i < c->num_input_files(0); i++) {