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:
2020-09-18 17:08:48 +02:00
parent 0de076a045
commit 009101d112

View File

@@ -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];