From 4f9c6540b2491da4903fedd876b461d0a485b0c3 Mon Sep 17 00:00:00 2001
From: yhirose <yuji.hirose.bug@gmail.com>
Date: Mon, 2 Sep 2024 20:33:33 -0400
Subject: [PATCH] Fixed warning

---
 httplib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httplib.h b/httplib.h
index 7782c38..0b482f4 100644
--- a/httplib.h
+++ b/httplib.h
@@ -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;
   }