mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-31 11:19:18 +00:00
Fix Wshorten-64-to-32 warning
This commit is contained in:
parent
0ce2e5b5d8
commit
5d5cbc05eb
@ -65,12 +65,7 @@ void direct_resampler_conditioner_cb::forecast(int noutput_items,
|
|||||||
gr_vector_int &ninput_items_required)
|
gr_vector_int &ninput_items_required)
|
||||||
{
|
{
|
||||||
int nreqd = std::max(static_cast<unsigned>(1), static_cast<int>(static_cast<double>(noutput_items + 1) * sample_freq_in() / sample_freq_out()) + history() - 1);
|
int nreqd = std::max(static_cast<unsigned>(1), static_cast<int>(static_cast<double>(noutput_items + 1) * sample_freq_in() / sample_freq_out()) + history() - 1);
|
||||||
unsigned ninputs = ninput_items_required.size();
|
std::fill(ninput_items_required.begin(), ninput_items_required.end(), nreqd);
|
||||||
|
|
||||||
for (unsigned i = 0; i < ninputs; i++)
|
|
||||||
{
|
|
||||||
ninput_items_required[i] = nreqd;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -64,11 +64,7 @@ void direct_resampler_conditioner_cc::forecast(int noutput_items,
|
|||||||
gr_vector_int &ninput_items_required)
|
gr_vector_int &ninput_items_required)
|
||||||
{
|
{
|
||||||
int nreqd = std::max(static_cast<unsigned>(1), static_cast<int>(static_cast<double>(noutput_items + 1) * sample_freq_in() / sample_freq_out()) + history() - 1);
|
int nreqd = std::max(static_cast<unsigned>(1), static_cast<int>(static_cast<double>(noutput_items + 1) * sample_freq_in() / sample_freq_out()) + history() - 1);
|
||||||
unsigned ninputs = ninput_items_required.size();
|
std::fill(ninput_items_required.begin(), ninput_items_required.end(), nreqd);
|
||||||
for (unsigned i = 0; i < ninputs; i++)
|
|
||||||
{
|
|
||||||
ninput_items_required[i] = nreqd;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,12 +66,7 @@ void direct_resampler_conditioner_cs::forecast(int noutput_items,
|
|||||||
gr_vector_int &ninput_items_required)
|
gr_vector_int &ninput_items_required)
|
||||||
{
|
{
|
||||||
int nreqd = std::max(static_cast<unsigned>(1), static_cast<int>(static_cast<double>(noutput_items + 1) * sample_freq_in() / sample_freq_out()) + history() - 1);
|
int nreqd = std::max(static_cast<unsigned>(1), static_cast<int>(static_cast<double>(noutput_items + 1) * sample_freq_in() / sample_freq_out()) + history() - 1);
|
||||||
unsigned ninputs = ninput_items_required.size();
|
std::fill(ninput_items_required.begin(), ninput_items_required.end(), nreqd);
|
||||||
|
|
||||||
for (unsigned i = 0; i < ninputs; i++)
|
|
||||||
{
|
|
||||||
ninput_items_required[i] = nreqd;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user