channellist.cpp fix compil -comparison between signed and unsigned integer expressions

This commit is contained in:
Jacek Jendrzej
2013-05-13 08:48:29 +02:00
parent 2ab63ce14d
commit c32266e8f4

View File

@@ -2228,6 +2228,7 @@ void CChannelList::paint_events(int index)
CChannelEventList::iterator e; CChannelEventList::iterator e;
time_t azeit; time_t azeit;
time(&azeit); time(&azeit);
unsigned int u_azeit = ( azeit > -1)? azeit:0;
if ( evtlist.empty() ) if ( evtlist.empty() )
{ {
@@ -2243,7 +2244,7 @@ void CChannelList::paint_events(int index)
for (e=evtlist.begin(); e!=evtlist.end(); ++e ) for (e=evtlist.begin(); e!=evtlist.end(); ++e )
{ {
//Remove events in the past //Remove events in the past
if ( (azeit > (e->startTime + e->duration)) && (!(e->eventID == 0))) if ( (u_azeit > (e->startTime + e->duration)) && (!(e->eventID == 0)))
{ {
do do
{ {
@@ -2252,7 +2253,7 @@ void CChannelList::paint_events(int index)
if (e == evtlist.end()) if (e == evtlist.end())
break; break;
} }
while ( azeit > (e->startTime + e->duration)); while ( u_azeit > (e->startTime + e->duration));
} }
if (e == evtlist.end()) if (e == evtlist.end())
break; break;