mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-29 10:24:51 +00:00
Replace memset by std::fill_n
This commit is contained in:
parent
e17f9268a8
commit
5c77a394d7
@ -366,7 +366,7 @@ int pcps_acquisition_fine_doppler_cc::estimate_Doppler(gr_vector_const_void_star
|
|||||||
int counter = 0;
|
int counter = 0;
|
||||||
|
|
||||||
float fftFreqBins[fft_size_extended];
|
float fftFreqBins[fft_size_extended];
|
||||||
memset(fftFreqBins, 0, fft_size_extended * sizeof(float));
|
std::fill_n(fftFreqBins, fft_size_extended, 0.0);
|
||||||
|
|
||||||
for (int k = 0; k < (fft_size_extended / 2); k++)
|
for (int k = 0; k < (fft_size_extended / 2); k++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user