From dbadc3655d06d8a7393eda6418e838474246461d Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Mon, 7 Jun 2021 02:59:18 -0400 Subject: [PATCH] Remove usage of `std::min()`. No, I don't want to pull in a huge header for that. --- core/Stream/pfSizedStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Stream/pfSizedStream.cpp b/core/Stream/pfSizedStream.cpp index 17a5bd79..38e4abe4 100644 --- a/core/Stream/pfSizedStream.cpp +++ b/core/Stream/pfSizedStream.cpp @@ -41,7 +41,7 @@ void pfSizedStream::seek(uint32_t pos) } fBase->seek(fBegin + pos); - fPos = std::min(pos, fLength); + fPos = pos > fLength ? fLength : pos; } void pfSizedStream::skip(int32_t count)