BFM demod: RDS parser: fixed compiler warning

This commit is contained in:
f4exb 2018-04-15 22:03:31 +02:00
parent eb047ba15e
commit 01798c9d15
1 changed files with 2 additions and 2 deletions

View File

@ -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
{
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
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:"
<< " TMC optional content (" << label_descriptions[m_g8_label_index].c_str() << ")"