[libunwind] fix build errors on x32 and mips n32 (#194310)
This commit is contained in:
committed by
GitHub
parent
8242576869
commit
06ddfcf0ca
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user