🐛 Fix bit_ceil() to return 1 for input 0 as per specification

This commit is contained in:
Abhay Kumar
2025-06-06 14:23:26 +05:30
parent 21761b3f62
commit f32cb2f696
2 changed files with 3 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ template<class T> void test_bit_ceil( T x )
if( x == 0 )
{
BOOST_TEST_EQ( y, 0 );
BOOST_TEST_EQ( y, 1 );
}
else
{