From e3efd510cb53ff3865dcc0f35c4a63bfd08cbbf6 Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Wed, 22 May 2013 07:50:50 -0700 Subject: [PATCH] Fix double to float conversion warning --- src/cpp/ripple/TaggedCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()