From a602a6a244035c8c4070c3013cfa737a3f3ed7ce Mon Sep 17 00:00:00 2001 From: Exverge Date: Fri, 31 Jul 2026 21:14:20 +0200 Subject: [PATCH] Update src/common/sparse_large_vector.h Signed-off-by: Exverge --- src/common/sparse_large_vector.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/sparse_large_vector.h b/src/common/sparse_large_vector.h index 0bf1b3d133..9cc61e5b07 100644 --- a/src/common/sparse_large_vector.h +++ b/src/common/sparse_large_vector.h @@ -107,8 +107,8 @@ public: } void ZeroRegion(std::size_t start, std::size_t end_) noexcept { - u64 base = reinterpret_cast(base_ptr[start]); - const u64 end = reinterpret_cast(base_ptr[end_]); + u64 base = reinterpret_cast(&base_ptr[start]); + const u64 end = reinterpret_cast(&base_ptr[end_]); const u64 end_page = AlignUp(base, HostPageSize); const u64 first_size = (std::min)(end_page, end) - base;