src/gui/channellist.cpp: fix Werror=sign-compare and revert 009101d112

This commit is contained in:
Jacek Jendrzej
2020-09-19 10:24:05 +02:00
parent d1e1450bc5
commit 80c339efe4

View File

@@ -260,7 +260,7 @@ CZapitChannel* CChannelList::getChannel(int number)
CZapitChannel* CChannelList::getChannel(t_channel_id channel_id)
{
if(!(*chanlist).empty()){
if(channel_id != std::numeric_limits<t_channel_id>::max() && !(*chanlist).empty()){
for (uint32_t i=0; i< (*chanlist).size(); i++) {
if ((*chanlist)[i]->getChannelID() == channel_id)
return (*chanlist)[i];