diff options
author | ccsmart <ccsmart@smartpal.de> | 2005-07-06 18:15:03 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-07-06 18:15:03 +0000 |
commit | 5565996ae46389896f5a8638b98bc55811f09e9b (patch) | |
tree | 10424766ca29d2f91b751d97490e9dd3a070af40 /packages/boost/files/unit_test_log10f.patch | |
parent | 9c8ed5e61498f7c5537c345d92e5b2da9fd6af3d (diff) | |
parent | 060a925277aefd5367a76112c45205d3370e0a4a (diff) |
merge of 39ec5c108a34c5b8050cb5c43e6e9b01d0a7e695
and bff71dff596d0325ccafbf13fc11a5beb1b38b89
Diffstat (limited to 'packages/boost/files/unit_test_log10f.patch')
-rw-r--r-- | packages/boost/files/unit_test_log10f.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/boost/files/unit_test_log10f.patch b/packages/boost/files/unit_test_log10f.patch new file mode 100644 index 0000000000..b235e12446 --- /dev/null +++ b/packages/boost/files/unit_test_log10f.patch @@ -0,0 +1,20 @@ +--- boost_1_32_0/libs/test/src/unit_test_result.cpp.orig 2005-07-05 11:00:53.887594850 -0700 ++++ boost_1_32_0/libs/test/src/unit_test_result.cpp 2005-07-05 11:01:20.683533034 -0700 +@@ -144,7 +144,7 @@ + unit_test_counter num_passed, unit_test_counter num_failed ) + { + unit_test_counter total_test_cases = num_passed + num_failed; +- std::size_t width = static_cast<std::size_t>( std::log10( (float)(std::max)( num_passed, num_failed ) ) ) + 1; ++ std::size_t width = static_cast<std::size_t>( std::log10( (double)(std::max)( num_passed, num_failed ) ) ) + 1; + + where_to << std::setw( indent ) << "" << std::setw( width ) << num_passed + << " test " << ps_name( num_passed != 1, "case" ) << " out of " << total_test_cases << " passed\n" +@@ -158,7 +158,7 @@ + { + unit_test_counter total_assertions = num_passed + num_failed; + std::size_t width = total_assertions > 0 +- ? static_cast<std::size_t>( std::log10( (float)(std::max)( num_passed, num_failed ) ) ) + 1 ++ ? static_cast<std::size_t>( std::log10( (double)(std::max)( num_passed, num_failed ) ) ) + 1 + : 1; + + where_to << std::setw( indent ) << "" << std::setw( width ) << num_passed |