From 009101d112456d9986c80c33df8e6352da3da7d2 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Fri, 18 Sep 2020 17:08:48 +0200 Subject: [PATCH] channellist: fix possible compile error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: comparison of integer expressions of different signedness: ‘t_channel_id’ {aka ‘long unsigned int’} and ‘int’ [-Werror=sign-compare] --- 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 9f40b2882..6cab4016c 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(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];