forked from boostorg/beast
1 parent
0c7fbc74f0
commit
70f232f6dd
2 files changed
+2
-1
No files matched your search
@@ -241,7 +241,7 @@ seek(std::uint64_t offset, error_code& ec)
|
||||
ec = make_error_code(errc::bad_file_descriptor);
|
||||
return;
|
||||
}
|
||||
if(offset > (std::numeric_limits<long>::max)())
|
||||
if(offset > static_cast<std::uint64_t>(std::numeric_limits<long>::max()))
|
||||
{
|
||||
ec = make_error_code(errc::invalid_seek);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user