Skip to content

Commit 4f9c654

Browse files
committed
Fixed warning
1 parent 21c9a6a commit 4f9c654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -2862,7 +2862,7 @@ inline bool mmap::open(const char *path) {
28622862
// If the following line doesn't compile due to QuadPart, update Windows SDK.
28632863
// See:
28642864
// https://github.com/yhirose/cpp-httplib/issues/1903#issuecomment-2316520721
2865-
if (size.QuadPart > std::numeric_limits<decltype(size_)>::max()) {
2865+
if (static_cast<ULONGLONG>(size.QuadPart) > std::numeric_limits<decltype(size_)>::max()) {
28662866
// `size_t` might be 32-bits, on 32-bits Windows.
28672867
return false;
28682868
}

0 commit comments

Comments
 (0)