Core/Bitset: Fix compile error

Former-commit-id: f9e4fc7547f9b741d9830ca96c552595b49b218d [formerly d8e832f8f8307a5af8c54a073fb7105e956dc91f] [formerly da3ca4c03e8c4f26023530a3150c99fe0bd8f060 [formerly 454daac75baf19c15612509e8505417dd1f194b6]]
Former-commit-id: e6c44555476b6b8f2648895493736d6018dd9ce5 [formerly 8e816f8b6a1366583000aa5e35b10b5bd6f82019]
Former-commit-id: 8d470b2679af9464001d3239738ab8d5bc7d6d67
This commit is contained in:
Lynix 2016-10-08 07:19:41 +02:00
parent 42240afb7c
commit 1788cd0735
1 changed files with 2 additions and 2 deletions

View File

@ -594,10 +594,10 @@ namespace Nz
std::size_t lastIndex = m_blocks.size() - 1;
std::size_t remaining = bitsPerBlock - div.rem;
for (std::size_t i = div.quot; i < last; ++i)
for (std::size_t i = div.quot; i < lastIndex; ++i)
m_blocks[i - div.quot] = (m_blocks[i] >> div.rem) | (m_blocks[i + 1] << remaining);
m_blocks[last - div.quot] = m_blocks[last] >> div.rem;
m_blocks[lastIndex - div.quot] = m_blocks[lastIndex] >> div.rem;
std::fill_n(m_blocks.begin() + (m_blocks.size() - div.quot), div.quot, Block(0));
}