We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21c9a6a commit 4f9c654Copy full SHA for 4f9c654
httplib.h
@@ -2862,7 +2862,7 @@ inline bool mmap::open(const char *path) {
2862
// If the following line doesn't compile due to QuadPart, update Windows SDK.
2863
// See:
2864
// https://github.com/yhirose/cpp-httplib/issues/1903#issuecomment-2316520721
2865
- if (size.QuadPart > std::numeric_limits<decltype(size_)>::max()) {
+ if (static_cast<ULONGLONG>(size.QuadPart) > std::numeric_limits<decltype(size_)>::max()) {
2866
// `size_t` might be 32-bits, on 32-bits Windows.
2867
return false;
2868
}
0 commit comments