From 04391be1e898fe006d15acedabd34a2d4468eed9 Mon Sep 17 00:00:00 2001 From: Bernd Schmidt Date: Thu, 6 Apr 2006 11:45:01 +0000 Subject: [PATCH] * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to eliminate warnings. --- bfd/ChangeLog | 5 +++++ bfd/elf32-bfin.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a18bd20973..97794afeb4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2006-04-05 Bernd Schmidt + + * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to + eliminate warnings. + 2006-04-05 H.J. Lu James E Wilson diff --git a/bfd/elf32-bfin.c b/bfd/elf32-bfin.c index 8f4dfcfffd..d5a81dbc60 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 -- 2.11.0