vm: fix fill64

This commit is contained in:
Megamouse
2026-10-05 20:07:01 +03:00
committed by Elad
parent 70c8683ae2
commit 3db7c53c67
+3 -2
View File
@@ -1283,9 +1283,10 @@ namespace vm
// Fill stack guards with STACKGRD
if (this->flags & stack_guarded)
{
auto fill64 = [](u8* ptr, u64 data, usz count)
const auto fill64 = [](u8* ptr, u64 data, usz count)
{
std::fill(ptr, ptr + count, data);
u64* dst = reinterpret_cast<u64*>(ptr);
std::fill(dst, dst + count, data);
};
const u32 enda = addr + size - 4096;