Fix some integer warnings in 64-bit builds

This commit is contained in:
Vinnie Falco committed 2017-11-07 07:10:31 -08:00
1 parent 6eba0e8f9e
commit 2ed1d9affb
4 files changed
+16 -12

No files matched your search

+1 -2
View File
@@ -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;