mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 08:09:26 +01:00
DolphinQt2: InfoWidget: explicit type for std::min
Avoids errors on macOS: ``` Source/Core/DolphinQt2/Config/InfoWidget.cpp:190:21: error: no matching function for call to 'min' u64 read_size = std::min(file_data.size(), game_size - read_offset); ^~~~~~~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:2589:1: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('unsigned long' vs. 'unsigned long long') min(const _Tp& __a, const _Tp& __b) ```
This commit is contained in:
parent
0e93bad737
commit
f798bcd5c0
@ -187,7 +187,7 @@ void InfoWidget::ComputeChecksum()
|
||||
if (progress->wasCanceled())
|
||||
return;
|
||||
|
||||
u64 read_size = std::min(file_data.size(), game_size - read_offset);
|
||||
u64 read_size = std::min<u64>(file_data.size(), game_size - read_offset);
|
||||
file->Read(read_offset, read_size, file_data.data());
|
||||
hash.addData(reinterpret_cast<char*>(file_data.data()), read_size);
|
||||
read_offset += read_size;
|
||||
|
Loading…
x
Reference in New Issue
Block a user