mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-06 03:29:12 -04:00
Fixed -Wparentheses -Wchar-subscripts warnings
This commit is contained in:
parent
4e2978f7ea
commit
7c1e546f5f
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user