From cdd58cf7575d6e7a52d70dcdac89305116dc3ee1 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Wed, 5 Apr 2017 16:31:36 +0200 Subject: [PATCH] Use proper UPX types. --- src/linker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/linker.cpp b/src/linker.cpp index e018b0ae..570962a6 100644 --- a/src/linker.cpp +++ b/src/linker.cpp @@ -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