2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-28 07:22:12 +00:00

Fix a pair of typos (one a clear bug).

[SVN r78316]
This commit is contained in:
John Maddock
2012-05-03 17:20:24 +00:00
parent d686640c63
commit be63e63891
2 changed files with 2 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ template <class T, class Policy>
inline int iconv_imp(T v, Policy const& pol, mpl::false_ const&)
{
BOOST_MATH_STD_USING
return iround(v);
return iround(v, pol);
}
template <class T, class Policy>

View File

@@ -423,7 +423,7 @@ struct lanczos13 : public mpl::int_<72>
static_cast<T>(BOOST_MATH_BIG_CONSTANT(T, 72, -0.9685385411006641478305219367315965391289e-9)),
};
T result = 0;
T z = z = 2;
T z = dz + 2;
for(unsigned k = 1; k <= sizeof(d)/sizeof(d[0]); ++k)
{
result += (-d[k-1]*dz)/(z + k*z + k*k - 1);