From fba67b4be663719b3adac7115a68e3364f79db5e 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 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/a91e7b9ea948f0c01c21712f3a49b2f06eebf63c Author: Jacek Jendrzej Date: 2020-09-19 (Sat, 19 Sep 2020) --- 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 db632ff41..f1b37d3b7 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -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::max() && !(*chanlist).empty()){ for (uint32_t i=0; i< (*chanlist).size(); i++) { if ((*chanlist)[i]->getChannelID() == channel_id) return (*chanlist)[i];