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