Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r50561 - in sandbox/math_toolkit/boost/math: special_functions tools
From: john_at_[hidden]
Date: 2009-01-13 08:05:53


Author: johnmaddock
Date: 2009-01-13 08:05:53 EST (Tue, 13 Jan 2009)
New Revision: 50561
URL: http://svn.boost.org/trac/boost/changeset/50561

Log:
Tweak config, fix signed/unsigned comparison warnings.
Text files modified:
   sandbox/math_toolkit/boost/math/special_functions/prime.hpp | 6 +++---
   sandbox/math_toolkit/boost/math/tools/config.hpp | 4 ++--
   2 files changed, 5 insertions(+), 5 deletions(-)

Modified: sandbox/math_toolkit/boost/math/special_functions/prime.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/special_functions/prime.hpp (original)
+++ sandbox/math_toolkit/boost/math/special_functions/prime.hpp 2009-01-13 08:05:53 EST (Tue, 13 Jan 2009)
@@ -22,9 +22,9 @@
       // That gives us the first 10000 primes with the largest
       // being 104729:
       //
- static const int b1 = 53;
- static const int b2 = 6541;
- static const int b3 = 10000;
+ static const unsigned b1 = 53;
+ static const unsigned b2 = 6541;
+ static const unsigned b3 = 10000;
       static const boost::array<unsigned char, 54> a1 = {
          2u, 3u, 5u, 7u, 11u, 13u, 17u, 19u, 23u, 29u, 31u,
          37u, 41u, 43u, 47u, 53u, 59u, 61u, 67u, 71u, 73u,

Modified: sandbox/math_toolkit/boost/math/tools/config.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/tools/config.hpp (original)
+++ sandbox/math_toolkit/boost/math/tools/config.hpp 2009-01-13 08:05:53 EST (Tue, 13 Jan 2009)
@@ -105,9 +105,9 @@
 
 #endif // defined BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
 
-#if BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590) || defined(__hppa)
+#if BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590) || defined(__hppa) || defined(__GNUC__)
 // Sun's compiler emits a hard error if a constant underflows,
-// as does aCC on PA-RISC:
+// as does aCC on PA-RISC, while gcc issues a large number of warnings:
 # define BOOST_MATH_SMALL_CONSTANT(x) 0
 #else
 # define BOOST_MATH_SMALL_CONSTANT(x) x


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