|
Boost-Commit : |
From: pbristow_at_[hidden]
Date: 2007-06-26 10:01:06
Author: pbristow
Date: 2007-06-26 10:01:06 EDT (Tue, 26 Jun 2007)
New Revision: 7171
URL: http://svn.boost.org/trac/boost/changeset/7171
Log:
T x = 0; // Set to a safe zero to avoid a
// MSVC 2005 warning C4701: potentially uninitialized local variable 'x' used
// But code inspection appears to ensure that x IS assigned whatever the code path.
Text files modified:
sandbox/math_toolkit/boost/math/special_functions/detail/ibeta_inverse.hpp | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
Modified: sandbox/math_toolkit/boost/math/special_functions/detail/ibeta_inverse.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/special_functions/detail/ibeta_inverse.hpp (original)
+++ sandbox/math_toolkit/boost/math/special_functions/detail/ibeta_inverse.hpp 2007-06-26 10:01:06 EDT (Tue, 26 Jun 2007)
@@ -1,4 +1,5 @@
-// (C) Copyright John Maddock 2006.
+// Copyright John Maddock 2006.
+// Copyright Paul A. Bristow 2007
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -458,8 +459,11 @@
// Depending upon which approximation method we use, we may end up
// calculating either x or y initially (where y = 1-x):
//
- T x, y;
- //
+ T x = 0; // Set to a safe zero to avoid a
+ // MSVC 2005 warning C4701: potentially uninitialized local variable 'x' used
+ // But code inspection appears to ensure that x IS assigned whatever the code path.
+ T y;
+
// For some of the methods we can put tighter bounds
// on the result than simply [0,1]:
//
@@ -657,7 +661,7 @@
if((b < a) && (x < 0.2))
{
//
- // Under a limited range of circustances we can improve
+ // Under a limited range of circumstances we can improve
// our estimate for x, frankly it's clear if this has much effect!
//
T ap1 = a - 1;
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