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;