Index: COFF/Chunks.cpp =================================================================== --- COFF/Chunks.cpp +++ COFF/Chunks.cpp @@ -183,7 +183,7 @@ } static void applyArm64Ldr(uint8_t *Off, uint64_t Imm) { - int Size = read32le(Off) >> 30; + uint32_t Size = read32le(Off) >> 30; if ((Imm & ((1 << Size) - 1)) != 0) fatal("misaligned ldr/str offset"); Imm >>= Size;