|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71444 - trunk/libs/math/test
From: pbristow_at_[hidden]
Date: 2011-04-23 12:50:12
Author: pbristow
Date: 2011-04-23 12:50:11 EDT (Sat, 23 Apr 2011)
New Revision: 71444
URL: http://svn.boost.org/trac/boost/changeset/71444
Log:
signbit(static_cast<CharType>(-1e-6f)/std::numeric_limits<CharType>::max())
!= 0
test used.
Text files modified:
trunk/libs/math/test/test_signed_zero.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/math/test/test_signed_zero.cpp
==============================================================================
--- trunk/libs/math/test/test_signed_zero.cpp (original)
+++ trunk/libs/math/test/test_signed_zero.cpp 2011-04-23 12:50:11 EDT (Sat, 23 Apr 2011)
@@ -49,7 +49,7 @@
template<class CharType, class ValType> void signed_zero_test_impl()
{
- if (static_cast<CharType>(-1e-6f)/std::numeric_limits<CharType>::max() != -0)
+ if (signbit(static_cast<CharType>(-1e-6f)/std::numeric_limits<CharType>::max()) != -0)
{
BOOST_MESSAGE("Signed zero is not supported on this platform.");
return;
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