From: khizmax Date: Tue, 22 Dec 2015 19:54:09 +0000 (+0300) Subject: Fixed a bug in split_bitstring algo X-Git-Tag: v2.1.0~18 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=802382c833d3a9404a3f43077f7aac5a5955a2bb;p=libcds.git Fixed a bug in split_bitstring algo --- diff --git a/cds/algo/split_bitstring.h b/cds/algo/split_bitstring.h index b556ad03..37cf2804 100644 --- a/cds/algo/split_bitstring.h +++ b/cds/algo/split_bitstring.h @@ -45,9 +45,9 @@ namespace cds { namespace algo { split_bitstring( bitstring const& h, size_t nBitOffset ) : m_ptr( reinterpret_cast( &h ) + nBitOffset / c_nBitPerInt ) , m_pos( nBitOffset % c_nBitPerInt ) - , m_first( m_ptr ) + , m_first( reinterpret_cast(&h)) # ifdef _DEBUG - , m_last( m_ptr + c_nHashSize ) + , m_last( m_first + c_nHashSize ) # endif {}