mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-27 05:32:45 +00:00
GUI: Fix format warning
This commit is contained in:
parent
a65682a828
commit
e114d1a697
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user