Solved warning when using -Wall

[SVN r42007]
This commit is contained in:
Ion Gaztañaga
2007-12-13 16:49:58 +00:00
parent 2d20786a29
commit 816685673e

View File

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