|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r75036 - trunk/boost/test/tools
From: gennadiy.rozental_at_[hidden]
Date: 2011-10-18 05:25:38
Author: rogeeff
Date: 2011-10-18 05:25:37 EDT (Tue, 18 Oct 2011)
New Revision: 75036
URL: http://svn.boost.org/trac/boost/changeset/75036
Log:
Added missing static cast for non standard FPT
Fixes #5729
Text files modified:
trunk/boost/test/tools/floating_point_comparison.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/test/tools/floating_point_comparison.hpp
==============================================================================
--- trunk/boost/test/tools/floating_point_comparison.hpp (original)
+++ trunk/boost/test/tools/floating_point_comparison.hpp 2011-10-18 05:25:37 EDT (Tue, 18 Oct 2011)
@@ -67,13 +67,13 @@
{
return std::numeric_limits<FPT>::is_specialized
? (std::numeric_limits<FPT>::min)()
- : 0;
+ : static_cast<FPT>(0);
}
static FPT max_value()
{
return std::numeric_limits<FPT>::is_specialized
? (std::numeric_limits<FPT>::max)()
- : static_cast<FPT>(1000000); // for the our purposes it doesn't really matter what value is returned here
+ : static_cast<FPT>(1000000); // for our purposes it doesn't really matter what value is returned here
}
};
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk