]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/boost/files/unit_test_log10f.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / boost / files / unit_test_log10f.patch
1 --- boost_1_32_0/libs/test/src/unit_test_result.cpp.orig        2005-07-05 11:00:53.887594850 -0700
2 +++ boost_1_32_0/libs/test/src/unit_test_result.cpp     2005-07-05 11:01:20.683533034 -0700
3 @@ -144,7 +144,7 @@
4                                          unit_test_counter num_passed, unit_test_counter num_failed )
5      {
6          unit_test_counter total_test_cases = num_passed + num_failed;
7 -        std::size_t       width = static_cast<std::size_t>( std::log10( (float)(std::max)( num_passed, num_failed ) ) ) + 1;
8 +        std::size_t       width = static_cast<std::size_t>( std::log10( (double)(std::max)( num_passed, num_failed ) ) ) + 1;
9  
10          where_to << std::setw( indent ) << "" << std::setw( width ) << num_passed
11                   << " test " << ps_name( num_passed != 1, "case" ) << " out of " << total_test_cases << " passed\n"
12 @@ -158,7 +158,7 @@
13      {
14          unit_test_counter total_assertions = num_passed + num_failed;
15          std::size_t       width            = total_assertions > 0 
16 -                                               ? static_cast<std::size_t>( std::log10( (float)(std::max)( num_passed, num_failed ) ) ) + 1
17 +                                               ? static_cast<std::size_t>( std::log10( (double)(std::max)( num_passed, num_failed ) ) ) + 1
18                                                 : 1;
19          
20          where_to << std::setw( indent ) << "" << std::setw( width ) << num_passed