mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +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)
|
||||
{
|
||||
if(channel_id != -1 && !(*chanlist).empty()){
|
||||
if(!(*chanlist).empty()){
|
||||
for (uint32_t i=0; i< (*chanlist).size(); i++) {
|
||||
if ((*chanlist)[i]->getChannelID() == channel_id)
|
||||
return (*chanlist)[i];
|
||||
|
Reference in New Issue
Block a user