diff options
| author | magumagu <magumagu9@gmail.com> | 2015-03-16 11:50:42 -0700 |
|---|---|---|
| committer | magumagu <magumagu9@gmail.com> | 2015-03-16 11:50:42 -0700 |
| commit | adb8bbed900bccf7e7fbfa5e79d3262bede18e21 (patch) | |
| tree | e32c61e43c53fdb73c00b18de3be109b2f0bd722 /Source/Core/DolphinWX/GameListCtrl.cpp | |
| parent | 0b6562b53f2d315bfc88d943658c05f75cd8fc2a (diff) | |
| parent | ad64336137013a823c212e4e491dbb435aa11e5f (diff) | |
Merge pull request #2217 from shuffle2/quiet-warnings
quiet some warnings which appear on vs2015.
Diffstat (limited to 'Source/Core/DolphinWX/GameListCtrl.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/GameListCtrl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp index 0d6cfbf71d..a66b3e7a66 100644 --- a/Source/Core/DolphinWX/GameListCtrl.cpp +++ b/Source/Core/DolphinWX/GameListCtrl.cpp @@ -402,7 +402,7 @@ static wxString NiceSizeFormat(u64 _size) // div 10 to get largest named unit less than _size // 10 == log2(1024) (number of B in a KiB, KiB in a MiB, etc) const u64 unit = IntLog2(std::max<u64>(_size, 1)) / 10; - const u64 unit_size = (1 << (unit * 10)); + const u64 unit_size = (1ull << (unit * 10)); // mul 1000 for 3 decimal places, add 5 to round up, div 10 for 2 decimal places std::string value = std::to_string((_size * 1000 / unit_size + 5) / 10); |
