Skip to content

Commit

Permalink
fix(page/win): properly cast min
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 20, 2024
1 parent c35ea64 commit a389bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/page.win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ namespace lime

const auto granularity = si.dwAllocationGranularity;

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

min += (granularity - (min % granularity));
Expand Down

0 comments on commit a389bb2

Please sign in to comment.