forked from boostorg/beast
Fix MSVC build error
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
* Fix MSVC build error.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 310:
|
Version 310:
|
||||||
|
|
||||||
* Update Release Notes.
|
* Update Release Notes.
|
||||||
|
@@ -916,7 +916,7 @@ prepare(size_type n) ->
|
|||||||
std::size_t altn = in_size_ * growth_factor;
|
std::size_t altn = in_size_ * growth_factor;
|
||||||
// Overflow detection:
|
// Overflow detection:
|
||||||
if(in_size_ > altn)
|
if(in_size_ > altn)
|
||||||
altn = std::numeric_limits<std::size_t>::max();
|
altn = (std::numeric_limits<std::size_t>::max)();
|
||||||
else
|
else
|
||||||
altn = (std::max<std::size_t>)(512, altn);
|
altn = (std::max<std::size_t>)(512, altn);
|
||||||
auto const size =
|
auto const size =
|
||||||
|
Reference in New Issue
Block a user