diff options
| author | Scott Mansell <phiren@gmail.com> | 2014-07-15 01:38:05 +1200 |
|---|---|---|
| committer | Scott Mansell <phiren@gmail.com> | 2014-07-15 01:38:05 +1200 |
| commit | d4a2afe345e40a4af30f8fb903ffff6413680d21 (patch) | |
| tree | 273c30ac01479a11eab8a542be5f6dd0f0678198 /Source/Core/DiscIO/FileSystemGCWii.cpp | |
| parent | 3ac4e9f171b116d4b09990058c18741598bb2ef8 (diff) | |
Fix another protential issue with casting.
Another issue from #334 with the casting moved from the output of
min to it's inputs.
This is a non-issue on 64 bit machines, but if dolphin is compiled
on an OS with size_t == u32 (say ARM) then remainingSize could be
truncated.
Restored the casting to the original order before #334.
Diffstat (limited to 'Source/Core/DiscIO/FileSystemGCWii.cpp')
| -rw-r--r-- | Source/Core/DiscIO/FileSystemGCWii.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/FileSystemGCWii.cpp b/Source/Core/DiscIO/FileSystemGCWii.cpp index ff32a4015f..afc9b12201 100644 --- a/Source/Core/DiscIO/FileSystemGCWii.cpp +++ b/Source/Core/DiscIO/FileSystemGCWii.cpp @@ -104,7 +104,7 @@ bool CFileSystemGCWii::ExportFile(const std::string& _rFullPath, const std::stri while (remainingSize) { // Limit read size to 128 MB - size_t readSize = std::min<size_t>(remainingSize, (u64)0x08000000); + size_t readSize = (size_t)std::min(remainingSize, (u64)0x08000000); std::vector<u8> buffer(readSize); |
