src/gui/channellist.cpp: fix Werror=sign-compare

Origin commit data
------------------
Branch: ni/coolstream
Commit: a91e7b9ea9
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2020-09-19 (Sat, 19 Sep 2020)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2020-09-19 10:24:05 +02:00
committed by vanhofen
parent ec76568e29
commit 56651b5418

View File

@@ -258,7 +258,7 @@ CZapitChannel* CChannelList::getChannel(int number)
CZapitChannel* CChannelList::getChannel(t_channel_id channel_id)
{
if(channel_id != -1 && !(*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];