mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
channellist: fix possible compile error
error: comparison of integer expressions of different signedness: ‘t_channel_id’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare]
This commit is contained in:
@@ -260,7 +260,7 @@ CZapitChannel* CChannelList::getChannel(int number)
|
|||||||
|
|
||||||
CZapitChannel* CChannelList::getChannel(t_channel_id channel_id)
|
CZapitChannel* CChannelList::getChannel(t_channel_id channel_id)
|
||||||
{
|
{
|
||||||
if(channel_id != -1 && !(*chanlist).empty()){
|
if(!(*chanlist).empty()){
|
||||||
for (uint32_t i=0; i< (*chanlist).size(); i++) {
|
for (uint32_t i=0; i< (*chanlist).size(); i++) {
|
||||||
if ((*chanlist)[i]->getChannelID() == channel_id)
|
if ((*chanlist)[i]->getChannelID() == channel_id)
|
||||||
return (*chanlist)[i];
|
return (*chanlist)[i];
|
||||||
|
Reference in New Issue
Block a user