Merge pull request #4485 from ligfx/fixmin
DolphinQt2: InfoWidget: explicit type for std::min
This commit is contained in:
commit
827de2ed06
|
@ -187,7 +187,7 @@ void InfoWidget::ComputeChecksum()
|
||||||
if (progress->wasCanceled())
|
if (progress->wasCanceled())
|
||||||
return;
|
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());
|
file->Read(read_offset, read_size, file_data.data());
|
||||||
hash.addData(reinterpret_cast<char*>(file_data.data()), read_size);
|
hash.addData(reinterpret_cast<char*>(file_data.data()), read_size);
|
||||||
read_offset += read_size;
|
read_offset += read_size;
|
||||||
|
|
Loading…
Reference in New Issue