1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-16 05:00:35 +00:00

Replace C-style cast by C++ casts

This commit is contained in:
Carles Fernandez 2018-01-17 19:11:42 +01:00
parent 59c153846c
commit bc92240443

View File

@ -310,7 +310,7 @@ bool Hybrid_valueCompare_gnss_synchro_sample_counter(const Gnss_Synchro& a, unsi
bool Hybrid_valueCompare_gnss_synchro_receiver_time(const Gnss_Synchro& a, double b)
{
return (((double)a.Tracking_sample_counter+a.Code_phase_samples)/(double)a.fs) < (b);
return ((static_cast<double>(a.Tracking_sample_counter) + static_cast<double>(a.Code_phase_samples)) / static_cast<double>(a.fs) ) < (b);
}