2
0
mirror of https://github.com/boostorg/math.git synced 2026-01-29 19:52:08 +00:00

Ooura Fourier integrals: Fix warnings on MSVC [CI SKIP]

This commit is contained in:
Nick Thompson
2019-06-26 17:54:21 -04:00
parent 21daaf9a90
commit 8d549cd0cf

View File

@@ -291,14 +291,14 @@ private:
std::vector<Real> bweight_row;
// This is a pretty good estimate for how many elements will be placed in the vector:
bnode_row.reserve((1<<i)*sizeof(Real));
bweight_row.reserve((1<<i)*sizeof(Real));
bnode_row.reserve((static_cast<size_t>(1)<<i)*sizeof(Real));
bweight_row.reserve((static_cast<size_t>(1)<<i)*sizeof(Real));
std::vector<Real> lnode_row;
std::vector<Real> lweight_row;
lnode_row.reserve((1<<i)*sizeof(Real));
lweight_row.reserve((1<<i)*sizeof(Real));
lnode_row.reserve((static_cast<size_t>(1)<<i)*sizeof(Real));
lweight_row.reserve((static_cast<size_t>(1)<<i)*sizeof(Real));
Real max_weight = 1;
auto alpha = calculate_ooura_alpha(h);
@@ -517,14 +517,14 @@ private:
std::vector<Real> bnode_row;
std::vector<Real> bweight_row;
bnode_row.reserve((1<<i)*sizeof(Real));
bweight_row.reserve((1<<i)*sizeof(Real));
bnode_row.reserve((static_cast<size_t>(1)<<i)*sizeof(Real));
bweight_row.reserve((static_cast<size_t>(1)<<i)*sizeof(Real));
std::vector<Real> lnode_row;
std::vector<Real> lweight_row;
lnode_row.reserve((1<<i)*sizeof(Real));
lweight_row.reserve((1<<i)*sizeof(Real));
lnode_row.reserve((static_cast<size_t>(1)<<i)*sizeof(Real));
lweight_row.reserve((static_cast<size_t>(1)<<i)*sizeof(Real));
Real max_weight = 1;
auto alpha = calculate_ooura_alpha(h);