Skip to content
Snippets Groups Projects
Commit c2b35815 authored by Thomas Jürges's avatar Thomas Jürges
Browse files

SW-546: Use a proper C++-style cast instead of a C-style cast

parent c6a48025
No related branches found
No related tags found
No related merge requests found
......@@ -102,7 +102,7 @@ namespace LOFAR
double TBB_Writer::subbandCentralFreq(unsigned subbandNr, unsigned nyquistZone, double sampleFreq)
{
return (nyquistZone - 1 + (double)subbandNr / RSP_NR_SUBBANDS) * sampleFreq * 0.5;
return (nyquistZone - 1 + static_cast< double >(subbandNr) / RSP_NR_SUBBANDS) * sampleFreq * 0.5;
}
TBB_Station *TBB_Writer::getStation(const TBB_Header& header)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment