diff options
author | Alan Modra <amodra@gmail.com> | 2019-12-19 15:17:12 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-12-19 15:27:00 +1030 |
commit | 9ad9b810c385c83242a3100fa986d174c83ffe10 (patch) | |
tree | e4496d8618ebfab1ff2ff5437b4cfd906e0bf2b2 /bfd/elf64-ppc.c | |
parent | 32769083d1b6b1cb325409b3c9b99c06026f70d7 (diff) | |
download | gdb-9ad9b810c385c83242a3100fa986d174c83ffe10.zip gdb-9ad9b810c385c83242a3100fa986d174c83ffe10.tar.gz gdb-9ad9b810c385c83242a3100fa986d174c83ffe10.tar.bz2 |
PowerPC, use size_t rather than long for indices
This is fussing about nothing really but since I was looking at signed
vs. unsigned issues, I decided to use the correct types here.
* elf32-ppc.c (ppc_elf_get_synthetic_symtab): Use size_t for vars.
* elf64-ppc.c (sym_exists_at): Use size_t for lo, hi and mid.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 52a96cf..e475421 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -2120,9 +2120,10 @@ compare_symbols (const void *ap, const void *bp) /* Search SYMS for a symbol of the given VALUE. */ static asymbol * -sym_exists_at (asymbol **syms, long lo, long hi, unsigned int id, bfd_vma value) +sym_exists_at (asymbol **syms, size_t lo, size_t hi, unsigned int id, + bfd_vma value) { - long mid; + size_t mid; if (id == (unsigned) -1) { |