diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-16 12:08:42 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-16 12:08:42 +0100 |
commit | 43e94412c45b4b79485a64010c76d89b245bb235 (patch) | |
tree | 54705d6b15d2dbc87e7811923e960d526ba640e5 /meta-moblin/packages/boost/files/unit_test_log10f.patch | |
parent | 4108e6f6037182e78bad27a4eae5456995f59e07 (diff) | |
download | openembedded-core-43e94412c45b4b79485a64010c76d89b245bb235.tar.gz openembedded-core-43e94412c45b4b79485a64010c76d89b245bb235.tar.bz2 openembedded-core-43e94412c45b4b79485a64010c76d89b245bb235.tar.xz openembedded-core-43e94412c45b4b79485a64010c76d89b245bb235.zip |
Add boost from OE.dev
Diffstat (limited to 'meta-moblin/packages/boost/files/unit_test_log10f.patch')
-rw-r--r-- | meta-moblin/packages/boost/files/unit_test_log10f.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-moblin/packages/boost/files/unit_test_log10f.patch b/meta-moblin/packages/boost/files/unit_test_log10f.patch new file mode 100644 index 000000000..b235e1244 --- /dev/null +++ b/meta-moblin/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 |