Boost logo

Boost :

From: Guillaume Melquiond (gmelquio_at_[hidden])
Date: 2003-05-18 10:11:46


The code in the atanh_test file is actually wrong. GCC complains about
unused variables yd and yl. And it is right since they have obviously been
forgotten in a copy-paste operation. Here is a patch that changes the code
so that it uses them where it needs to.

Index: libs/math/special_functions/atanh_test.hpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/math/special_functions/atanh_test.hpp,v
retrieving revision 1.2
diff -u -r1.2 atanh_test.hpp
--- libs/math/special_functions/atanh_test.hpp 1 Mar 2003 18:10:26 -0000 1.2
+++ libs/math/special_functions/atanh_test.hpp 18 May 2003 15:04:31 -0000
@@ -136,13 +136,13 @@
                         numeric_limits<float>::epsilon())||
                     (abs(yf+static_cast<float>(1)) <
                         numeric_limits<float>::epsilon())||
- (abs(yf-static_cast<double>(1)) <
+ (abs(yd-static_cast<double>(1)) <
                         numeric_limits<double>::epsilon())||
- (abs(yf+static_cast<double>(1)) <
+ (abs(yd+static_cast<double>(1)) <
                         numeric_limits<double>::epsilon())||
- (abs(yf-static_cast<long double>(1)) <
+ (abs(yl-static_cast<long double>(1)) <
                         numeric_limits<long double>::epsilon())||
- (abs(yf+static_cast<long double>(1)) <
+ (abs(yl+static_cast<long double>(1)) <
                         numeric_limits<long double>::epsilon())
                 )
             {

Regards,

Guillaume


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk