Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78765 - trunk/boost/math/distributions
From: pbristow_at_[hidden]
Date: 2012-05-30 12:30:45


Author: pbristow
Date: 2012-05-30 12:30:45 EDT (Wed, 30 May 2012)
New Revision: 78765
URL: http://svn.boost.org/trac/boost/changeset/78765

Log:
Corrected checks missing ().
Text files modified:
   trunk/boost/math/distributions/beta.hpp | 49 ++++++++++++++++++---------------------
   1 files changed, 23 insertions(+), 26 deletions(-)

Modified: trunk/boost/math/distributions/beta.hpp
==============================================================================
--- trunk/boost/math/distributions/beta.hpp (original)
+++ trunk/boost/math/distributions/beta.hpp 2012-05-30 12:30:45 EDT (Wed, 30 May 2012)
@@ -189,11 +189,10 @@
         static const char* function = "boost::math::beta_distribution<%1%>::find_alpha";
         RealType result = 0; // of error checks.
         if(false ==
- beta_detail::check_mean(
- function, mean, &result, Policy())
- &&
- beta_detail::check_variance(
- function, variance, &result, Policy())
+ (
+ beta_detail::check_mean(function, mean, &result, Policy())
+ && beta_detail::check_variance(function, variance, &result, Policy())
+ )
           )
         {
           return result;
@@ -208,11 +207,11 @@
         static const char* function = "boost::math::beta_distribution<%1%>::find_beta";
         RealType result = 0; // of error checks.
         if(false ==
- beta_detail::check_mean(
- function, mean, &result, Policy())
- &&
- beta_detail::check_variance(
- function, variance, &result, Policy())
+ (
+ beta_detail::check_mean(function, mean, &result, Policy())
+ &&
+ beta_detail::check_variance(function, variance, &result, Policy())
+ )
           )
         {
           return result;
@@ -231,14 +230,13 @@
         static const char* function = "boost::math::beta_distribution<%1%>::find_alpha";
         RealType result = 0; // of error checks.
         if(false ==
- beta_detail::check_prob(
- function, probability, &result, Policy())
- &&
- beta_detail::check_beta(
- function, beta, &result, Policy())
- &&
- beta_detail::check_x(
- function, x, &result, Policy())
+ (
+ beta_detail::check_prob(function, probability, &result, Policy())
+ &&
+ beta_detail::check_beta(function, beta, &result, Policy())
+ &&
+ beta_detail::check_x(function, x, &result, Policy())
+ )
           )
         {
           return result;
@@ -255,14 +253,13 @@
         static const char* function = "boost::math::beta_distribution<%1%>::find_beta";
         RealType result = 0; // of error checks.
         if(false ==
- beta_detail::check_prob(
- function, probability, &result, Policy())
- &&
- beta_detail::check_alpha(
- function, alpha, &result, Policy())
- &&
- beta_detail::check_x(
- function, x, &result, Policy())
+ (
+ beta_detail::check_prob(function, probability, &result, Policy())
+ &&
+ beta_detail::check_alpha(function, alpha, &result, Policy())
+ &&
+ beta_detail::check_x(function, x, &result, Policy())
+ )
           )
         {
           return result;


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