From 4283c1730917aa5ff7340f15bb03dae368831fda Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sat, 17 Jun 2006 21:22:51 +0000 Subject: [PATCH] Avoid a warning on Visual C++ [SVN r34329] --- include/boost/functional/detail/hash_float.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/functional/detail/hash_float.hpp b/include/boost/functional/detail/hash_float.hpp index c04267b..8ffe0e6 100644 --- a/include/boost/functional/detail/hash_float.hpp +++ b/include/boost/functional/detail/hash_float.hpp @@ -52,10 +52,10 @@ namespace boost // The result of frexp is always between 0.5 and 1, so its // top bit will always be 1. Subtract by 0.5 to remove that. if(v >= 0) { - v = boost::hash_detail::call_frexp(v, &exp) - 0.5; + v = boost::hash_detail::call_frexp(v, &exp) - T(0.5); } else { - v = -boost::hash_detail::call_frexp(v, &exp) - 0.5; + v = -boost::hash_detail::call_frexp(v, &exp) - T(0.5); exp = ~exp; }