Boost logo

Boost-Commit :

From: igaztanaga_at_[hidden]
Date: 2007-12-13 11:49:58


Author: igaztanaga
Date: 2007-12-13 11:49:58 EST (Thu, 13 Dec 2007)
New Revision: 42007
URL: http://svn.boost.org/trac/boost/changeset/42007

Log:
Solved warning when using -Wall
Text files modified:
   trunk/boost/intrusive/detail/utilities.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/intrusive/detail/utilities.hpp
==============================================================================
--- trunk/boost/intrusive/detail/utilities.hpp (original)
+++ trunk/boost/intrusive/detail/utilities.hpp 2007-12-13 11:49:58 EST (Thu, 13 Dec 2007)
@@ -498,7 +498,8 @@
 
 inline float fast_log2 (float val)
 {
- boost::uint32_t * const exp_ptr = reinterpret_cast <boost::uint32_t *>(&val);
+ boost::uint32_t * const exp_ptr =
+ static_cast <boost::uint32_t * const>(static_cast<void * const >(&val));
    boost::uint32_t x = *exp_ptr;
    const int log_2 = (int)(((x >> 23) & 255) - 128);
    x &= ~(255 << 23);


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk