From 80c339efe4c48679f8a1c9986adbf1b73e431e4e Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sat, 19 Sep 2020 10:24:05 +0200 Subject: [PATCH] src/gui/channellist.cpp: fix Werror=sign-compare and revert 009101d112456d9986c80c33df8e6352da3da7d2 --- src/gui/channellist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 6cab4016c..bdb48c59c 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -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::max() && !(*chanlist).empty()){ for (uint32_t i=0; i< (*chanlist).size(); i++) { if ((*chanlist)[i]->getChannelID() == channel_id) return (*chanlist)[i];