From ea6ba212f13eae4d07c53c4494d402926b2260b3 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 19 Mar 2015 18:29:37 +0100 Subject: [PATCH] moviebrowser.cpp: silence comparing floating point warning Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/632ecc3b1e44a02cbb306a9e58a8090ae3f53cd3 Author: Jacek Jendrzej Date: 2015-03-19 (Thu, 19 Mar 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/moviebrowser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index 15e2777e9..02612682d 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -3366,7 +3366,7 @@ void CMovieBrowser::refreshYTMenu() yt_menue->addItem(new CMenuForwarder(LOCALE_MOVIEBROWSER_YT_CANCEL, true, NULL, ytcache_selector, "cancel_all")); yt_menue->addItem(GenericMenuSeparator); std::string progress; - if (dlstart && dltotal && dlnow) { + if (dlstart && (int64_t)dltotal && (int64_t)dlnow) { time_t done = time(NULL) - dlstart; time_t left = ((dltotal - dlnow) * done)/dlnow; progress = "(" + to_string(done) + "s/" + to_string(left) + "s)";