Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64886 - trunk/boost/math/distributions
From: pbristow_at_[hidden]
Date: 2010-08-18 09:10:20


Author: pbristow
Date: 2010-08-18 09:10:19 EDT (Wed, 18 Aug 2010)
New Revision: 64886
URL: http://svn.boost.org/trac/boost/changeset/64886

Log:
warning C4244 suppressed by using static_cast<realType>
Text files modified:
   trunk/boost/math/distributions/lognormal.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/math/distributions/lognormal.hpp
==============================================================================
--- trunk/boost/math/distributions/lognormal.hpp (original)
+++ trunk/boost/math/distributions/lognormal.hpp 2010-08-18 09:10:19 EDT (Wed, 18 Aug 2010)
@@ -78,7 +78,7 @@
 inline const std::pair<RealType, RealType> range(const lognormal_distribution<RealType, Policy>& /*dist*/)
 { // Range of permissible values for random variable x is >0 to +infinity.
    using boost::math::tools::max_value;
- return std::pair<RealType, RealType>(0, max_value<RealType>());
+ return std::pair<RealType, RealType>(static_cast<RealType>(0), max_value<RealType>());
 }
 
 template <class RealType, class Policy>
@@ -86,7 +86,7 @@
 { // Range of supported values for random variable x.
    // This is range where cdf rises from 0 to 1, and outside it, the pdf is zero.
    using boost::math::tools::max_value;
- return std::pair<RealType, RealType>(0, max_value<RealType>());
+ return std::pair<RealType, RealType>(static_cast<RealType>(0), max_value<RealType>());
 }
 
 template <class RealType, class Policy>


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