Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48845 - trunk/boost/test
From: gennadiy.rozental_at_[hidden]
Date: 2008-09-18 00:57:48


Author: rogeeff
Date: 2008-09-18 00:57:48 EDT (Thu, 18 Sep 2008)
New Revision: 48845
URL: http://svn.boost.org/trac/boost/changeset/48845

Log:
avoids warnings on some systems
Text files modified:
   trunk/boost/test/floating_point_comparison.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/test/floating_point_comparison.hpp
==============================================================================
--- trunk/boost/test/floating_point_comparison.hpp (original)
+++ trunk/boost/test/floating_point_comparison.hpp 2008-09-18 00:57:48 EDT (Thu, 18 Sep 2008)
@@ -181,8 +181,8 @@
         FPT d2 = tt_detail::safe_fpt_division( diff, tt_detail::fpt_abs( left ) );
         
         return p_strong_or_weak
- ? (d1 <= p_fraction_tolerance && d2 <= p_fraction_tolerance)
- : (d1 <= p_fraction_tolerance || d2 <= p_fraction_tolerance);
+ ? (d1 <= p_fraction_tolerance.get() && d2 <= p_fraction_tolerance.get())
+ : (d1 <= p_fraction_tolerance.get() || d2 <= p_fraction_tolerance.get());
     }
 
     // Public properties


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