From b25a62a8a36541b12e8452224bb2e71f83ade815 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 28 Dec 2002 21:08:38 +0000 Subject: [PATCH] Update. 2002-12-28 Andreas Jaeger * sysdeps/generic/readelflib.c (process_elf_file): Cast value to avoid warning. * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise. --- ChangeLog | 6 ++++++ sysdeps/generic/dl-cache.c | 2 +- sysdeps/generic/readelflib.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 82577f6e4e..dc70a60d14 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2002-12-28 Andreas Jaeger + + * sysdeps/generic/readelflib.c (process_elf_file): Cast value to + avoid warning. + * sysdeps/generic/dl-cache.c (_dl_load_cache_lookup): Likewise. + 2002-12-27 Jakub Jelinek * inet/herrno.c (__h_errno_location): Remove. diff --git a/sysdeps/generic/dl-cache.c b/sysdeps/generic/dl-cache.c index 4d66a238e3..bf2e98c543 100644 --- a/sysdeps/generic/dl-cache.c +++ b/sysdeps/generic/dl-cache.c @@ -219,7 +219,7 @@ _dl_load_cache_lookup (const char *name) hwcap = &GL(dl_hwcap); platform = _dl_string_platform (GL(dl_platform)); - if (platform != -1) + if (platform != (uint64_t) -1) platform = 1ULL << platform; /* Only accept hwcap if it's for the right platform. */ diff --git a/sysdeps/generic/readelflib.c b/sysdeps/generic/readelflib.c index af5584c37c..26444ad6b2 100644 --- a/sysdeps/generic/readelflib.c +++ b/sysdeps/generic/readelflib.c @@ -100,7 +100,7 @@ process_elf_file (const char *file_name, const char *lib, int *flag, switch (segment->p_type) { case PT_LOAD: - if (loadaddr == -1) + if (loadaddr == (ElfW(Addr)) -1) loadaddr = segment->p_vaddr - segment->p_offset; break; @@ -145,7 +145,7 @@ process_elf_file (const char *file_name, const char *lib, int *flag, } } - if (loadaddr == -1) + if (loadaddr == (ElfW(Addr)) -1) { /* Very strange. */ loadaddr = 0;