Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
QDateTime::secsTo() returns qint64 in Qt5, int in Qt4. Add cast.
  • Loading branch information
daniel-kristjansson committed Jun 8, 2013
1 parent e300607 commit e4a91a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mythtv/programs/mythbackend/scheduler.cpp
Expand Up @@ -1826,7 +1826,8 @@ void Scheduler::run(void)

nextWakeTime = min(nextWakeTime, nextStartTime);
QDateTime curtime = MythDate::current();
int secs_to_next = max(curtime.secsTo(nextStartTime), 0);
int secs_to_next =
max(qint64(curtime.secsTo(nextStartTime)), qint64(0));
int sched_sleep = max(curtime.msecsTo(nextWakeTime), qint64(0));
bool queuedRequests = HaveQueuedRequests();

Expand Down

0 comments on commit e4a91a0

Please sign in to comment.