|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78422 - in trunk/boost/math: special_functions tools
From: john_at_[hidden]
Date: 2012-05-11 13:13:04
Author: johnmaddock
Date: 2012-05-11 13:13:03 EDT (Fri, 11 May 2012)
New Revision: 78422
URL: http://svn.boost.org/trac/boost/changeset/78422
Log:
Quash some minor warnings.
Text files modified:
trunk/boost/math/special_functions/zeta.hpp | 2 +-
trunk/boost/math/tools/precision.hpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
Modified: trunk/boost/math/special_functions/zeta.hpp
==============================================================================
--- trunk/boost/math/special_functions/zeta.hpp (original)
+++ trunk/boost/math/special_functions/zeta.hpp 2012-05-11 13:13:03 EDT (Fri, 11 May 2012)
@@ -542,7 +542,7 @@
}
template <class T, class Policy>
-T zeta_imp_prec(T s, T sc, const Policy& pol, const mpl::int_<113>&)
+T zeta_imp_prec(T s, T sc, const Policy&, const mpl::int_<113>&)
{
BOOST_MATH_STD_USING
T result;
Modified: trunk/boost/math/tools/precision.hpp
==============================================================================
--- trunk/boost/math/tools/precision.hpp (original)
+++ trunk/boost/math/tools/precision.hpp 2012-05-11 13:13:03 EDT (Fri, 11 May 2012)
@@ -195,7 +195,7 @@
(std::numeric_limits<T>::max_exponent == 128
|| std::numeric_limits<T>::max_exponent == 1024
|| std::numeric_limits<T>::max_exponent == 16384),
- mpl::int_<std::numeric_limits<T>::max_exponent>,
+ mpl::int_<(std::numeric_limits<T>::max_exponent > INT_MAX ? INT_MAX : static_cast<int>(std::numeric_limits<T>::max_exponent))>,
mpl::int_<0>
>::type tag_type;
BOOST_STATIC_ASSERT( ::std::numeric_limits<T>::is_specialized);
@@ -217,7 +217,7 @@
(std::numeric_limits<T>::max_exponent == 128
|| std::numeric_limits<T>::max_exponent == 1024
|| std::numeric_limits<T>::max_exponent == 16384),
- mpl::int_<std::numeric_limits<T>::max_exponent>,
+ mpl::int_<(std::numeric_limits<T>::max_exponent > INT_MAX ? INT_MAX : static_cast<int>(std::numeric_limits<T>::max_exponent))>,
mpl::int_<0>
>::type tag_type;
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