aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-bfin.c
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@codesourcery.com>2006-04-06 11:45:01 +0000
committerBernd Schmidt <bernds@codesourcery.com>2006-04-06 11:45:01 +0000
commit17e226a87faa13cb7fefca4d7ce5b84cf95d7176 (patch)
tree79bcd04d449d4082403e7a91fa3978078563b63b /bfd/elf32-bfin.c
parenta135cb2ce14b2346ebba924e0577a88fb1b50e09 (diff)
downloadgdb-17e226a87faa13cb7fefca4d7ce5b84cf95d7176.zip
gdb-17e226a87faa13cb7fefca4d7ce5b84cf95d7176.tar.gz
gdb-17e226a87faa13cb7fefca4d7ce5b84cf95d7176.tar.bz2
* elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to
eliminate warnings.
Diffstat (limited to 'bfd/elf32-bfin.c')
-rw-r--r--bfd/elf32-bfin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c
index 8f4dfcf..d5a81db 100644
--- a/bfd/elf32-bfin.c
+++ b/bfd/elf32-bfin.c
@@ -1284,8 +1284,8 @@ bfinfdpic_relocs_info_hash (const void *entry_)
const struct bfinfdpic_relocs_info *entry = entry_;
return (entry->symndx == -1
- ? entry->d.h->root.root.hash
- : entry->symndx + entry->d.abfd->id * 257) + entry->addend;
+ ? (long) entry->d.h->root.root.hash
+ : entry->symndx + (long) entry->d.abfd->id * 257) + entry->addend;
}
/* Test whether the key fields of two bfinfdpic_relocs_info entries are