Fix compilation and some warnings

This commit is contained in:
Jérôme Leclercq
2017-10-02 16:18:15 +02:00
parent 40a678889d
commit 99d21b8722
7 changed files with 32 additions and 11 deletions

View File

@@ -958,7 +958,7 @@ namespace Nz
*/
template<typename Block, class Allocator>
typename Bitset<Block, Allocator>::Bit Bitset<Block, Allocator>::operator[](int index)
typename Bitset<Block, Allocator>::Bit Bitset<Block, Allocator>::operator[](std::size_t index)
{
return Bit(m_blocks[GetBlockIndex(index)], Block(1U) << GetBitIndex(index));
}
@@ -969,7 +969,7 @@ namespace Nz
*/
template<typename Block, class Allocator>
bool Bitset<Block, Allocator>::operator[](int index) const
bool Bitset<Block, Allocator>::operator[](std::size_t index) const
{
return Test(index);
}