From f61946335c7645e8563d62db48c2b9088d29d2c9 Mon Sep 17 00:00:00 2001 From: ahm3dgg Date: Wed, 7 Jan 2026 08:57:09 +0200 Subject: [PATCH] fix cast --- src/common/platform/win_pefile.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/platform/win_pefile.hpp b/src/common/platform/win_pefile.hpp index efcc8b69..c3f99d3f 100644 --- a/src/common/platform/win_pefile.hpp +++ b/src/common/platform/win_pefile.hpp @@ -537,7 +537,7 @@ namespace winpe auto next_section_offset = winpe::get_first_section_offset(nt_headers, nt_headers_offset); for (size_t i = 0; i < nt_headers.FileHeader.NumberOfSections; i++) { - const auto section = buffer.as(next_section_offset).get(); + const auto section = buffer.as(static_cast(next_section_offset)).get(); auto section_va_start = section.VirtualAddress; auto section_va_end = section.VirtualAddress + section.Misc.VirtualSize;