Skip to content

Commit a389bb2

Browse files
committed
fix(page/win): properly cast min
1 parent c35ea64 commit a389bb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/page.win.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ namespace lime
236236

237237
const auto granularity = si.dwAllocationGranularity;
238238

239-
auto min = where - std::numeric_limits<std::int32_t>::max();
239+
auto min = static_cast<std::intptr_t>(where) - std::numeric_limits<std::int32_t>::max();
240240
auto max = where + std::numeric_limits<std::int32_t>::max();
241241

242242
min += (granularity - (min % granularity));

0 commit comments

Comments
 (0)