Skip to content

Commit

Permalink
Fix false positive assert in cbitsetN::numBitsSet
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Jan 17, 2023
1 parent 9c5ba9b commit 4245256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OgreMain/include/OgreBitset.inl
Expand Up @@ -115,7 +115,7 @@ namespace Ogre
OGRE_TEMPL_DECL
size_t cbitsetN<OGRE_TEMPL_USE>::numBitsSet( const size_t positionEnd ) const
{
OGRE_ASSERT_MEDIUM( positionEnd < _N );
OGRE_ASSERT_MEDIUM( positionEnd <= _N );
size_t retVal = 0u;
for( size_t i = 0u; i < positionEnd; )
{
Expand Down

0 comments on commit 4245256

Please sign in to comment.