mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
src/gui/channellist.cpp: fix Werror=sign-compare and revert 009101d112
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user