From 85593ea401076167f5a49b92b7def89828676ca7 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Thu, 26 May 2005 07:36:26 +0000 Subject: [PATCH] Initialise the exponent before calling frexp in the hash float function. [SVN r29200] --- include/boost/functional/hash/hash.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/functional/hash/hash.hpp b/include/boost/functional/hash/hash.hpp index e9a53f2..81ff1dd 100644 --- a/include/boost/functional/hash/hash.hpp +++ b/include/boost/functional/hash/hash.hpp @@ -263,7 +263,7 @@ namespace boost template inline std::size_t float_hash_value(T v) { - int exp; + int exp = 0; v = boost::hash_detail::call_frexp(v, &exp); std::size_t seed = 0;