mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-07-03 10:32:55 +00:00
Replace C-style casts by C++-style casts
This commit is contained in:
parent
8ef49734db
commit
66a585bfeb
@ -90,7 +90,7 @@ int pulse_blanking_cc::general_work (int noutput_items __attribute__((unused)),
|
||||
volk_32f_accumulator_s32f(&segment_energy, (magnitude + sample_index), length_);
|
||||
if((n_segments < n_segments_est) && (last_filtered == false))
|
||||
{
|
||||
noise_power_estimation = (((float) n_segments) * noise_power_estimation + segment_energy / ((float)n_deg_fred)) / ((float)(n_segments + 1));
|
||||
noise_power_estimation = ( static_cast<float>(n_segments) * noise_power_estimation + segment_energy / static_cast<float>(n_deg_fred) ) / static_cast<float>(n_segments + 1);
|
||||
memcpy(out, in, sizeof(gr_complex) * length_);
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user