Skip to content

Commit 78f0f71

Browse files
achartiervinniefalco
authored andcommitted
Fix signed/unsigned mismatch in file_stdio::seek
fix boostorg#1687
1 parent ba156fc commit 78f0f71

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Version 267:
22

33
* Add package for Travis config
4+
* Fix signed/unsigned mismatch in file_stdio::seek
45

56
--------------------------------------------------------------------------------
67

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ seek(std::uint64_t offset, error_code& ec)
241241
ec = make_error_code(errc::bad_file_descriptor);
242242
return;
243243
}
244-
if(offset > (std::numeric_limits<long>::max)())
244+
if(offset > static_cast<std::uint64_t>(std::numeric_limits<long>::max()))
245245
{
246246
ec = make_error_code(errc::invalid_seek);
247247
return;

0 commit comments

Comments
 (0)