summaryrefslogtreecommitdiff
path: root/bfd/elf32-cris.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2001-10-24 03:39:54 +0000
committerHans-Peter Nilsson <hp@axis.com>2001-10-24 03:39:54 +0000
commit01522a441ddb443e93c181f2c393fee14882bc14 (patch)
tree0f297625643a6ee14d13ee66118a154b455d2d1e /bfd/elf32-cris.c
parent4ecf7dbf96ca0ee8946e54dc5b613eef12eae2b4 (diff)
downloadgdb-01522a441ddb443e93c181f2c393fee14882bc14.tar.gz
* elf32-cris.c (cris_reloc_type_lookup): Change loop to use
unsigned, increasing index.
Diffstat (limited to 'bfd/elf32-cris.c')
-rw-r--r--bfd/elf32-cris.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index afcd397d761..19fa7c46b56 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -437,10 +437,9 @@ cris_reloc_type_lookup (abfd, code)
bfd * abfd ATTRIBUTE_UNUSED;
bfd_reloc_code_real_type code;
{
- int i;
+ unsigned int i;
- for (i = sizeof (cris_reloc_map) / sizeof (cris_reloc_map[0]);
- --i >= 0;)
+ for (i = 0; i < sizeof (cris_reloc_map) / sizeof (cris_reloc_map[0]); i++)
if (cris_reloc_map [i].bfd_reloc_val == code)
return & cris_elf_howto_table [cris_reloc_map[i].cris_reloc_val];