mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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];
|
||||
|
Reference in New Issue
Block a user