diff --git a/compiler-rt/lib/msan/msan_linux.cc b/compiler-rt/lib/msan/msan_linux.cc index 64aa35b0b354b06cec95934017fb5b02b14bb7af..cda23b103d768d9f1099235f057b81645416d80d 100644 --- a/compiler-rt/lib/msan/msan_linux.cc +++ b/compiler-rt/lib/msan/msan_linux.cc @@ -110,7 +110,7 @@ void UnpoisonMappedDSO(link_map *map) { } // Compute the delta from the real base to get a relocation delta. - ptrdiff_t delta = (uptr)base - preferred_base; + sptr delta = (uptr)base - preferred_base; // Now we can figure out what the loader really mapped. for (char *iter = phdrs; iter != phdrs_end; iter += ehdr->e_phentsize) { Elf_Phdr *phdr = (Elf_Phdr *)iter;