From 816685673e5bd456485ebf418218ec241a0e3453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 13 Dec 2007 16:49:58 +0000 Subject: [PATCH] Solved warning when using -Wall [SVN r42007] --- include/boost/intrusive/detail/utilities.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/intrusive/detail/utilities.hpp b/include/boost/intrusive/detail/utilities.hpp index 2e018c9..2528aba 100644 --- a/include/boost/intrusive/detail/utilities.hpp +++ b/include/boost/intrusive/detail/utilities.hpp @@ -498,7 +498,8 @@ inline std::size_t floor_log2 (std::size_t x) inline float fast_log2 (float val) { - boost::uint32_t * const exp_ptr = reinterpret_cast (&val); + boost::uint32_t * const exp_ptr = + static_cast (static_cast(&val)); boost::uint32_t x = *exp_ptr; const int log_2 = (int)(((x >> 23) & 255) - 128); x &= ~(255 << 23);