Boost library min/max guidance:

fix #170
This commit is contained in:
Vinnie Falco committed 2016-11-12 11:27:56 -05:00
1 parent 02feea5128
commit 84a6775dc1
13 files changed
+21 -19

No files matched your search

@@ -356,8 +356,8 @@ read_fh2(DynamicBuffer& db, close_code::value& code)
}
else
{
if(rd_size_ > std::numeric_limits<
std::uint64_t>::max() - rd_fh_.len)
if(rd_size_ > (std::numeric_limits<
std::uint64_t>::max)() - rd_fh_.len)
{
code = close_code::too_big;
return;
@@ -230,7 +230,7 @@ utf8_checker_t<_>::write(std::uint8_t const* in, std::size_t size)
auto const end = in + size;
if (need_ > 0)
{
auto n = std::min(size, need_);
auto n = (std::min)(size, need_);
size -= n;
need_ -= n;
while(n--)