diff --git a/util/cache_test.cc b/util/cache_test.cc index c12cdb7e1b..74109ff0cf 100644 --- a/util/cache_test.cc +++ b/util/cache_test.cc @@ -386,7 +386,7 @@ class Value { namespace { void deleter(const Slice& key, void* value) { - delete (Value *)value; + delete static_cast(value); } } // namespace