From 1c740a3da8495cfaebb7dc648602b9273c097a74 Mon Sep 17 00:00:00 2001 From: Phillip Date: Sat, 23 Jan 2016 22:53:28 -0800 Subject: [PATCH] Replace errant std::min call --- lib/DiscBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DiscBase.cpp b/lib/DiscBase.cpp index f949356..e3f1fea 100644 --- a/lib/DiscBase.cpp +++ b/lib/DiscBase.cpp @@ -299,7 +299,7 @@ bool DiscBuilderBase::PartitionBuilderBase::buildFromDirectory(const SystemChar* ++m_parent.m_progressIdx; 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) break; ws->write(buf, rdSz);