[libunwind] fix build errors on x32 and mips n32 (#194310)

This commit is contained in:
Alex Rønne Petersen
2026-04-27 15:32:47 +02:00
committed by GitHub
parent 8242576869
commit 06ddfcf0ca
2 changed files with 2 additions and 2 deletions

View File

@@ -666,7 +666,7 @@ inline bool LocalAddressSpace::findUnwindSections(
return true;
}
#endif
dl_iterate_cb_data cb_data = {this, &info, targetAddr};
dl_iterate_cb_data cb_data = {this, &info, static_cast<pint_t>(targetAddr)};
int found = dl_iterate_phdr(findUnwindSectionsByPhdr, &cb_data);
return static_cast<bool>(found);
#endif

View File

@@ -477,7 +477,7 @@ bool CFI_Parser<A>::parseFDEInstructions(
{cieInfo.cieInstructions, cieInfo.cieStart + cieInfo.cieLength,
(pint_t)(-1)},
{fdeInfo.fdeInstructions, fdeInfo.fdeStart + fdeInfo.fdeLength,
upToPC - fdeInfo.pcStart}};
static_cast<pint_t>(upToPC) - fdeInfo.pcStart}};
for (const auto &info : parseInfoArray) {
pint_t p = info.instructions;