1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

Use proper UPX types.

This commit is contained in:
Markus F.X.J. Oberhumer 2017-04-05 16:31:36 +02:00
parent 5da6a27e6b
commit cdd58cf757

View File

@ -614,8 +614,8 @@ void ElfLinkerARM64::relocate1(const Relocation *rel, upx_byte *location, upx_ui
}
else if (!strcmp(type, "CONDBR19")) {
value -= rel->section->offset + rel->offset;
uint32_t const m19 = ~(~0u << 19);
uint32_t w = get_le32(location);
upx_uint32_t const m19 = ~(~0u << 19);
upx_uint32_t w = get_le32(location);
set_le32(location, (w &~(m19<<5)) | ((((w>>5) + (value>>2)) & m19) << 5) );
}
else