From 380e651afcd9bbc76b95fc4a278bed01571782e9 Mon Sep 17 00:00:00 2001 From: Kien-hung Li Date: Wed, 31 Aug 2016 18:03:10 -0400 Subject: [PATCH] Fix Mac build failure (#1309) --- utilities/persistent_cache/persistent_cache_bench.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/persistent_cache/persistent_cache_bench.cc b/utilities/persistent_cache/persistent_cache_bench.cc index 3d7fbf0b8..38b0cd322 100644 --- a/utilities/persistent_cache/persistent_cache_bench.cc +++ b/utilities/persistent_cache/persistent_cache_bench.cc @@ -224,13 +224,13 @@ class CacheTierBenchmark { // Lookup in cache StopWatchNano timer(Env::Default(), /*auto_start=*/true); std::unique_ptr block; - uint64_t size; + size_t size; Status status = cache_->Lookup(key, &block, &size); if (!status.ok()) { fprintf(stderr, "%s\n", status.ToString().c_str()); } assert(status.ok()); - assert(size == (uint64_t)FLAGS_iosize); + assert(size == (size_t) FLAGS_iosize); // adjust stats const size_t elapsed_micro = timer.ElapsedNanos() / 1000;