diff --git a/src/DSP/FFT.cpp b/src/DSP/FFT.cpp index 568d53718..dadd79f03 100644 --- a/src/DSP/FFT.cpp +++ b/src/DSP/FFT.cpp @@ -142,9 +142,9 @@ void FFT::ProcessLoop() if (resultsCallback) { // to log scale - for (uint i = 0; i < fftBins.size(); ++i) + for (size_t i = 0; i < fftBins.size(); ++i) avgOutput[i] = sqrt(avgOutput[i] / avgCount); - for (uint i = 0; i < fftBins.size(); ++i) + for (size_t i = 0; i < fftBins.size(); ++i) { fftBins[i] = avgOutput[i] > 0 ? 10 * log10(avgOutput[i]) : -150; } diff --git a/src/lms7002m/LMS7002M_validation.cpp b/src/lms7002m/LMS7002M_validation.cpp index 6093fc699..f1942918b 100644 --- a/src/lms7002m/LMS7002M_validation.cpp +++ b/src/lms7002m/LMS7002M_validation.cpp @@ -67,7 +67,7 @@ bool LMS7002M_Validate(const SDRDevice::SDRConfig& cfg, std::vector errors.push_back(strFormat("Tx ch%i LO (%g) out of range [%g:%g]", i, ch.tx.centerFrequency, minLO, maxLO)); // TODO: make warning if rx loopback selection does not work with tx output - if (ch.rx.enabled && not InRange(ch.rx.path, 0, 5)) + if (ch.rx.enabled && !InRange(ch.rx.path, 0, 5)) errors.push_back(strFormat("Rx ch%i invalid path(%i)", i, ch.rx.path)); if (ch.tx.enabled && !InRange(ch.tx.path, 0, 2))