modernize-loop-convert

This commit is contained in:
Serge Lamikhov-Center 2021-08-26 13:09:37 +03:00
parent 35eb9cfa6d
commit 162fd7a9a0

View File

@ -694,12 +694,10 @@ class elfio
// sub sequence of other segments are located at the end
worklist = get_ordered_segments();
for ( auto i = 0; i < worklist.size(); ++i ) {
for ( auto seg : worklist ) {
Elf_Xword segment_memory = 0;
Elf_Xword segment_filesize = 0;
Elf_Xword seg_start_pos = current_file_pos;
segment* seg = worklist[i];
// Special case: PHDR segment
// This segment contains the program headers but no sections
if ( seg->get_type() == PT_PHDR && seg->get_sections_num() == 0 ) {