Imported Upstream version 1.72.0
[platform/upstream/boost.git] / boost / beast / core / impl / file_stdio.ipp
index 30adae6..e2d03a7 100644 (file)
@@ -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;