forked from boostorg/beast
Fix some integer warnings in 64-bit builds
This commit is contained in:
1 parent
6eba0e8f9e
commit
2ed1d9affb
4 files changed
+16
-12
No files matched your search
@@ -93,8 +93,7 @@ public:
|
||||
{
|
||||
if(length)
|
||||
{
|
||||
if(*length > (
|
||||
std::numeric_limits<std::size_t>::max)())
|
||||
if(static_cast<std::size_t>(*length) != *length)
|
||||
{
|
||||
ec = error::buffer_overflow;
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user