mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-03-27 22:59:28 -04:00
Fix compiler warnings
This commit is contained in:
parent
2f5f2672d0
commit
c947ef0c23
@ -420,10 +420,9 @@ void RttyModSource::encodeText(const QString& text)
|
|||||||
{
|
{
|
||||||
unsigned bits;
|
unsigned bits;
|
||||||
unsigned bitCount;
|
unsigned bitCount;
|
||||||
bool error;
|
|
||||||
|
|
||||||
error = m_rttyEncoder.encode(s[i], bits, bitCount);
|
m_rttyEncoder.encode(s[i], bits, bitCount);
|
||||||
for (int j = 0; j < bitCount; j++)
|
for (unsigned int j = 0; j < bitCount; j++)
|
||||||
{
|
{
|
||||||
int txBit = (bits >> j) & 1;
|
int txBit = (bits >> j) & 1;
|
||||||
addBit(txBit);
|
addBit(txBit);
|
||||||
|
@ -40,7 +40,7 @@ public:
|
|||||||
void create(double beta, int symbolSpan, int samplesPerSymbol, bool normaliseUpsampledAmplitude = false)
|
void create(double beta, int symbolSpan, int samplesPerSymbol, bool normaliseUpsampledAmplitude = false)
|
||||||
{
|
{
|
||||||
int nTaps = symbolSpan * samplesPerSymbol + 1;
|
int nTaps = symbolSpan * samplesPerSymbol + 1;
|
||||||
int i, j;
|
int i;
|
||||||
|
|
||||||
// check constraints
|
// check constraints
|
||||||
if(!(nTaps & 1)) {
|
if(!(nTaps & 1)) {
|
||||||
|
@ -307,7 +307,7 @@ bool BaudotEncoder::encode(QChar c, unsigned &bits, unsigned int &bitCount)
|
|||||||
// Look for character in other pages
|
// Look for character in other pages
|
||||||
const QString switchPage[] = { ">", "<", "\0" };
|
const QString switchPage[] = { ">", "<", "\0" };
|
||||||
|
|
||||||
for (int page = m_page == LETTERS ? 1 : 0; page < (m_characterSet == Baudot::RUSSIAN) ? 3 : 2; page++)
|
for (int page = m_page == LETTERS ? 1 : 0; page < ((m_characterSet == Baudot::RUSSIAN) ? 3 : 2); page++)
|
||||||
{
|
{
|
||||||
if (m_chars[page].contains(s))
|
if (m_chars[page].contains(s))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user