From a389bb2353ab0c57e36d00dcfe48b31558fc6ee6 Mon Sep 17 00:00:00 2001 From: Curve Date: Mon, 20 May 2024 18:58:44 +0200 Subject: [PATCH] fix(page/win): properly cast `min` --- src/page.win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/page.win.cpp b/src/page.win.cpp index 46b9690..93e26cf 100644 --- a/src/page.win.cpp +++ b/src/page.win.cpp @@ -236,7 +236,7 @@ namespace lime const auto granularity = si.dwAllocationGranularity; - auto min = where - std::numeric_limits::max(); + auto min = static_cast(where) - std::numeric_limits::max(); auto max = where + std::numeric_limits::max(); min += (granularity - (min % granularity));