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)