From 92452a4bba592a1d8e0f131fa1ed8d4c03334cd2 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 5 Sep 2016 08:18:22 +0200 Subject: GUI: Fix warnings --- gui/downloaddialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui/downloaddialog.cpp') diff --git a/gui/downloaddialog.cpp b/gui/downloaddialog.cpp index ea7ace2f2a..8d5035fcb7 100644 --- a/gui/downloaddialog.cpp +++ b/gui/downloaddialog.cpp @@ -193,7 +193,7 @@ void DownloadDialog::handleTickle() { return; } - uint32 progress = (uint32)(100 * CloudMan.getDownloadingProgress()); + int32 progress = (int32)(100 * CloudMan.getDownloadingProgress()); if (_progressBar->getValue() != progress) { refreshWidgets(); draw(); @@ -239,7 +239,7 @@ Common::String getHumanReadableBytes(uint64 bytes, Common::String &unitsOut) { } // print one digit after floating point - result = Common::String::format("%.1lf", floating); + result = Common::String::format("%.1f", floating); return result; } } -- cgit v1.2.3