Boost logo

Boost-Commit :

From: Boris.Gubenko_at_[hidden]
Date: 2007-12-06 05:47:53


Author: bgubenko
Date: 2007-12-06 05:47:52 EST (Thu, 06 Dec 2007)
New Revision: 41778
URL: http://svn.boost.org/trac/boost/changeset/41778

Log:
compute 'result' in to_ulong() as it is done in Boost 1.34
Text files modified:
   trunk/boost/dynamic_bitset/dynamic_bitset.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/dynamic_bitset/dynamic_bitset.hpp
==============================================================================
--- trunk/boost/dynamic_bitset/dynamic_bitset.hpp (original)
+++ trunk/boost/dynamic_bitset/dynamic_bitset.hpp 2007-12-06 05:47:52 EST (Thu, 06 Dec 2007)
@@ -1087,7 +1087,8 @@
 
     assert((size_type)bits_per_block * i < (size_type)ulong_width);
 
- result |= (m_bits[i] << (bits_per_block * i));
+ unsigned long piece = m_bits[i];
+ result |= (piece << (bits_per_block * i));
   }
 
   return result;


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