Skip to content

Commit a412832

Browse files
committed
fix: use (int) cast instead of int32_t for FDE pointer offset
1 parent f6a0743 commit a412832

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ddprof-lib/src/main/cpp/dwarf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ void DwarfParser::parse(const char *eh_frame_hdr, size_t size, const char *image
180180
}
181181
for (u32 i = 0; i < fde_count; i++) {
182182
// table[i*2] is initial_loc; table[i*2+1] is the FDE pointer (datarel sdata4).
183-
// Cast to int32_t to correctly handle negative offsets (FDE before the header).
184-
_ptr = eh_frame_hdr + (int32_t)table[i * 2 + 1];
183+
// Cast to int to correctly handle negative offsets (FDE before the header).
184+
_ptr = eh_frame_hdr + (int)table[i * 2 + 1];
185185
parseFde();
186186
}
187187
}

0 commit comments

Comments
 (0)