mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-06-17 13:52:47 -04:00
BFM demod: RDS parser: fixed compiler warning
This commit is contained in:
parent
eb047ba15e
commit
01798c9d15
@ -941,10 +941,10 @@ void RDSParser::decode_optional_content(int no_groups, unsigned long int *free_f
|
|||||||
while(ff_pointer >= 7) // ff_pointer must be >= 0 and is decreased by 7 in the loop
|
while(ff_pointer >= 7) // ff_pointer must be >= 0 and is decreased by 7 in the loop
|
||||||
{
|
{
|
||||||
ff_pointer -= 4;
|
ff_pointer -= 4;
|
||||||
m_g8_label_index = (free_format[i] && (0xf << ff_pointer)) ? 1 : 0;
|
m_g8_label_index = (free_format[i] && ((0xf << ff_pointer) != 0)) ? 1 : 0;
|
||||||
content_length = 3; // optional_content_lengths[m_g8_label_index]; // always 3
|
content_length = 3; // optional_content_lengths[m_g8_label_index]; // always 3
|
||||||
ff_pointer -= content_length;
|
ff_pointer -= content_length;
|
||||||
m_g8_content = (free_format[i] && (int(std::pow(2, content_length) - 1) << ff_pointer)) ? 1 : 0;
|
m_g8_content = (free_format[i] && ((int(std::pow(2, content_length) - 1) << ff_pointer) != 0)) ? 1 : 0;
|
||||||
|
|
||||||
qDebug() << "RDSParser::decode_optional_content:"
|
qDebug() << "RDSParser::decode_optional_content:"
|
||||||
<< " TMC optional content (" << label_descriptions[m_g8_label_index].c_str() << ")"
|
<< " TMC optional content (" << label_descriptions[m_g8_label_index].c_str() << ")"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user