Skip to content

Commit

Permalink
Remove usage of std::min().
Browse files Browse the repository at this point in the history
No, I don't want to pull in a huge header for that.
  • Loading branch information
Hoikas committed Jun 7, 2021
1 parent a60669a commit dbadc36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/Stream/pfSizedStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dbadc36

Please sign in to comment.