Skip to content

Commit 24a1196

Browse files
committed
Fix max() compile error
closes #1980
1 parent f25c904 commit 24a1196

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
* Fix `max` compile error
2+
3+
--------------------------------------------------------------------------------
4+
15
Version 296:
26

37
* Remove buffers_adapter.hpp (API Change)

include/boost/beast/core/impl/file_stdio.ipp

+1-1
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ seek(std::uint64_t offset, error_code& ec)
270270
ec = make_error_code(errc::bad_file_descriptor);
271271
return;
272272
}
273-
if(offset > static_cast<std::uint64_t>(std::numeric_limits<long>::max()))
273+
if(offset > static_cast<std::uint64_t>((std::numeric_limits<long>::max)()))
274274
{
275275
ec = make_error_code(errc::invalid_seek);
276276
return;

0 commit comments

Comments
 (0)