Fix max() compile error

closes #1980
This commit is contained in:
Richard Hodges
2020-06-11 13:48:25 +02:00
parent f25c904d14
commit ae2b699e04
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
* Fix `max` compile error
--------------------------------------------------------------------------------
Version 296:
* Remove buffers_adapter.hpp (API Change)

View File

@ -270,7 +270,7 @@ seek(std::uint64_t offset, error_code& ec)
ec = make_error_code(errc::bad_file_descriptor);
return;
}
if(offset > static_cast<std::uint64_t>(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;