diff --git a/plugins/channelrx/chanalyzer/chanalyzersink.cpp b/plugins/channelrx/chanalyzer/chanalyzersink.cpp index c3e392010..8e953b632 100644 --- a/plugins/channelrx/chanalyzer/chanalyzersink.cpp +++ b/plugins/channelrx/chanalyzer/chanalyzersink.cpp @@ -167,7 +167,7 @@ void ChannelAnalyzerSink::applyChannelSettings(int channelSampleRate, int sinkSa for (int i = 0; i < 7; i++) // find log2 beween 0 and 6 { - if (decim & 1 == 1) + if ((decim & 1) == 1) { qDebug() << "ChannelAnalyzerSink::applyChannelSettings: log2decim: " << i; m_decimator.setLog2Decim(i); @@ -308,4 +308,4 @@ void ChannelAnalyzerSink::applySampleRate() m_pll.setSampleRate(sampleRate); m_fll.setSampleRate(sampleRate); RRCFilter->create_rrc_filter(m_settings.m_bandwidth / (float) sampleRate, m_settings.m_rrcRolloff / 100.0); -} \ No newline at end of file +} diff --git a/plugins/channelrx/demodchirpchat/chirpchatdemoddecodertty.cpp b/plugins/channelrx/demodchirpchat/chirpchatdemoddecodertty.cpp index 83b355757..a24aa895d 100644 --- a/plugins/channelrx/demodchirpchat/chirpchatdemoddecodertty.cpp +++ b/plugins/channelrx/demodchirpchat/chirpchatdemoddecodertty.cpp @@ -51,9 +51,9 @@ void ChirpChatDemodDecoderTTY::decodeSymbols(const std::vector& char asciiChar = -1; if (ttyState == TTYLetters) { - asciiChar = ttyLetters[ttyChar]; + asciiChar = ttyLetters[(int) ttyChar]; } else if (ttyState == TTYFigures) { - asciiChar = ttyFigures[ttyChar]; + asciiChar = ttyFigures[(int) ttyChar]; } if (asciiChar >= 0) { diff --git a/plugins/channelrx/filesink/filesinksink.cpp b/plugins/channelrx/filesink/filesinksink.cpp index 6712748ce..656a74497 100644 --- a/plugins/channelrx/filesink/filesinksink.cpp +++ b/plugins/channelrx/filesink/filesinksink.cpp @@ -200,7 +200,7 @@ void FileSinkSink::applyChannelSettings( for (int i = 0; i < 7; i++) // find log2 beween 0 and 6 { - if (decim & 1 == 1) + if ((decim & 1) == 1) { qDebug() << "FileSinkSink::applyChannelSettings: log2decim: " << i; m_decimator.setLog2Decim(i); diff --git a/plugins/channeltx/modchirpchat/chirpchatmodencodertty.cpp b/plugins/channeltx/modchirpchat/chirpchatmodencodertty.cpp index b7f4f4bf1..490cc9e01 100644 --- a/plugins/channeltx/modchirpchat/chirpchatmodencodertty.cpp +++ b/plugins/channeltx/modchirpchat/chirpchatmodencodertty.cpp @@ -96,8 +96,8 @@ void ChirpChatModEncoderTTY::encodeString(const QString& str, std::vector