mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 09:18:27 +00:00
Fixed warning
This commit is contained in:
parent
21c9a6a1ff
commit
4f9c6540b2
1 changed files with 1 additions and 1 deletions
|
@ -2862,7 +2862,7 @@ inline bool mmap::open(const char *path) {
|
|||
// If the following line doesn't compile due to QuadPart, update Windows SDK.
|
||||
// See:
|
||||
// https://github.com/yhirose/cpp-httplib/issues/1903#issuecomment-2316520721
|
||||
if (size.QuadPart > std::numeric_limits<decltype(size_)>::max()) {
|
||||
if (static_cast<ULONGLONG>(size.QuadPart) > std::numeric_limits<decltype(size_)>::max()) {
|
||||
// `size_t` might be 32-bits, on 32-bits Windows.
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue