diff --git a/src/cpp/ripple/TaggedCache.h b/src/cpp/ripple/TaggedCache.h index 53e48a9ace..8b05e30e07 100644 --- a/src/cpp/ripple/TaggedCache.h +++ b/src/cpp/ripple/TaggedCache.h @@ -137,7 +137,7 @@ template int TaggedCache::getTra template float TaggedCache::getHitRate() { boost::recursive_mutex::scoped_lock sl(mLock); - return (static_cast(mHits) * 100) / (1.0 + mHits + mMisses); + return (static_cast(mHits) * 100) / (1.0f + mHits + mMisses); } template void TaggedCache::clearStats()