projects
/
libcds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8f49df
)
Fixed a bug in split_bitstring algo
author
khizmax
<libcds.dev@gmail.com>
Tue, 22 Dec 2015 19:54:09 +0000
(22:54 +0300)
committer
khizmax
<libcds.dev@gmail.com>
Tue, 22 Dec 2015 19:54:09 +0000
(22:54 +0300)
cds/algo/split_bitstring.h
patch
|
blob
|
history
diff --git
a/cds/algo/split_bitstring.h
b/cds/algo/split_bitstring.h
index b556ad03ca9ec853e3d85a2d42a05f176a6e4dfa..37cf2804ca77f3a13683c37a8783d314a2d13184 100644
(file)
--- 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<uint_type const*>( &h ) + nBitOffset / c_nBitPerInt )
, m_pos( nBitOffset % c_nBitPerInt )
- , m_first(
m_ptr
)
+ , m_first(
reinterpret_cast<uint_type const*>(&h)
)
# ifdef _DEBUG
- , m_last( m_
ptr
+ c_nHashSize )
+ , m_last( m_
first
+ c_nHashSize )
# endif
{}