GUI: Fix format warning

This commit is contained in:
Eugene Sandulenko 2016-07-22 14:15:06 +03:00 committed by Alexander Tkachev
parent a65682a828
commit e114d1a697

View File

@ -199,12 +199,12 @@ void DownloadDialog::reflowLayout() {
namespace {
Common::String getHumanReadableBytes(uint64 bytes, Common::String &unitsOut) {
Common::String result = Common::String::format("%u", bytes);
Common::String result = Common::String::format("%lu", bytes);
unitsOut = "B";
if (bytes >= 1024) {
bytes /= 1024;
result = Common::String::format("%u", bytes);
result = Common::String::format("%lu", bytes);
unitsOut = "KB";
}