Core/Bitset: Fix crash when resizing to zero
This commit is contained in:
parent
a28635ec70
commit
9d16559f55
|
|
@ -1219,7 +1219,8 @@ namespace Nz
|
||||||
template<typename Block, class Allocator>
|
template<typename Block, class Allocator>
|
||||||
void Bitset<Block, Allocator>::ResetExtraBits()
|
void Bitset<Block, Allocator>::ResetExtraBits()
|
||||||
{
|
{
|
||||||
m_blocks.back() &= GetLastBlockMask();
|
if (!m_blocks.empty())
|
||||||
|
m_blocks.back() &= GetLastBlockMask();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue