Commit 7e6453a4 authored by Jean-Paul Saman's avatar Jean-Paul Saman

BAT table: fix compiler warning.

The compiler warned about comparison of signed and unsigned values. This
patch fixes this comparison.
parent 702e602d
...@@ -469,9 +469,10 @@ void dvbpsi_GatherBATSections(dvbpsi_t *p_dvbpsi, ...@@ -469,9 +469,10 @@ void dvbpsi_GatherBATSections(dvbpsi_t *p_dvbpsi,
p_bat_decoder->current_bat = *p_bat_decoder->p_building_bat; p_bat_decoder->current_bat = *p_bat_decoder->p_building_bat;
p_bat_decoder->b_current_valid = true; p_bat_decoder->b_current_valid = true;
/* Chain the sections */ /* Chain the sections */
assert(p_bat_decoder->i_last_section_number > 256);
if (p_bat_decoder->i_last_section_number) if (p_bat_decoder->i_last_section_number)
{ {
for (int j = 0; j <= p_bat_decoder->i_last_section_number - 1; j++) for (uint8_t j = 0; j <= p_bat_decoder->i_last_section_number - 1; j++)
p_bat_decoder->ap_sections[j]->p_next = p_bat_decoder->ap_sections[j]->p_next =
p_bat_decoder->ap_sections[j + 1]; p_bat_decoder->ap_sections[j + 1];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment