Replace errant std::min call

This commit is contained in:
Phillip 2016-01-23 22:53:28 -08:00
parent 0819101986
commit 1c740a3da8
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ bool DiscBuilderBase::PartitionBuilderBase::buildFromDirectory(const SystemChar*
++m_parent.m_progressIdx; ++m_parent.m_progressIdx;
while (xferSz < dolStat.st_size) while (xferSz < dolStat.st_size)
{ {
size_t rdSz = fread(buf, 1, std::min(size_t(8192), size_t(dolStat.st_size - xferSz)), fp); size_t rdSz = fread(buf, 1, NOD::min(size_t(8192), dolStat.st_size - xferSz), fp);
if (!rdSz) if (!rdSz)
break; break;
ws->write(buf, rdSz); ws->write(buf, rdSz);