Avoid a warning on Visual C++

[SVN r34329]
This commit is contained in:
Daniel James
2006-06-17 21:22:51 +00:00
parent d8c636ef9f
commit 4283c17309

View File

@@ -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;
}