Fixed -Wparentheses -Wchar-subscripts warnings

pull/714/head
f4exb 2020-11-15 01:11:16 +01:00
rodzic 4e2978f7ea
commit 7c1e546f5f
4 zmienionych plików z 7 dodań i 7 usunięć

Wyświetl plik

@ -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);
}
}

Wyświetl plik

@ -51,9 +51,9 @@ void ChirpChatDemodDecoderTTY::decodeSymbols(const std::vector<unsigned short>&
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) {

Wyświetl plik

@ -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);

Wyświetl plik

@ -96,8 +96,8 @@ void ChirpChatModEncoderTTY::encodeString(const QString& str, std::vector<unsign
for (; it != asciiStr.end(); ++it)
{
char asciiChar = *it & 0x7F;
int ttyLetter = asciiToTTYLetters[asciiChar];
int ttyFigure = asciiToTTYFigures[asciiChar];
int ttyLetter = asciiToTTYLetters[(int) asciiChar];
int ttyFigure = asciiToTTYFigures[(int) asciiChar];
if (ttyLetter < 0)
{