Skip to content

Commit

Permalink
Merge pull request #4485 from ligfx/fixmin
Browse files Browse the repository at this point in the history
DolphinQt2: InfoWidget: explicit type for std::min
  • Loading branch information
degasus committed Dec 3, 2016
2 parents 0e93bad + f798bcd commit 827de2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/DolphinQt2/Config/InfoWidget.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 827de2e

Please sign in to comment.