We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb860e1 commit 79613cdCopy full SHA for 79613cd
1 file changed
src/platform/x86_pc/os.cpp
@@ -154,7 +154,7 @@ void OS::start(uint32_t boot_magic, uint32_t boot_addr)
154
"Pre-heap", "Heap randomization area"});
155
156
uintptr_t span_max = std::numeric_limits<std::ptrdiff_t>::max();
157
- uintptr_t heap_range_max_ = std::min(span_max, OS::heap_max_-1);
+ uintptr_t heap_range_max_ = std::min(span_max, OS::heap_max_);
158
159
MYINFO("Assigning heap");
160
memmap.assign_range({::heap_begin, heap_range_max_,
0 commit comments