Permalink
Browse files

QDateTime::secsTo() returns qint64 in Qt5, int in Qt4. Add cast.

  • Loading branch information...
daniel-kristjansson committed Jun 8, 2013
1 parent e300607 commit e4a91a05cb622be30b7adb496be3338c39099ef9
Showing with 2 additions and 1 deletion.
  1. +2 −1 mythtv/programs/mythbackend/scheduler.cpp
@@ -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();

0 comments on commit e4a91a0

Please sign in to comment.