From 5090316f0ded4bf9af04d78cbacb031824d31c3f Mon Sep 17 00:00:00 2001 From: Haobo Xu Date: Fri, 13 Dec 2013 14:19:18 -0800 Subject: [PATCH] [RocksDB] [Performance Branch] Trivia build fix Summary: make release complains signed unsigned comparison. Test Plan: make release Reviewers: kailiu CC: leveldb Differential Revision: https://reviews.facebook.net/D14661 --- util/cache_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/cache_test.cc b/util/cache_test.cc index 2e10bdc3a..b99f47b38 100644 --- a/util/cache_test.cc +++ b/util/cache_test.cc @@ -128,7 +128,7 @@ TEST(CacheTest, UsageTest) { } // make sure the cache will be overloaded - for (int i = 1; i < kCapacity; ++i) { + for (uint64_t i = 1; i < kCapacity; ++i) { auto key = std::to_string(i); cache->Release( cache->Insert(key, (void*)value, key.size() + 5, dumbDeleter)