* elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to
authorBernd Schmidt <bernds@codesourcery.com>
Thu, 6 Apr 2006 11:45:01 +0000 (11:45 +0000)
committerBernd Schmidt <bernds@codesourcery.com>
Thu, 6 Apr 2006 11:45:01 +0000 (11:45 +0000)
eliminate warnings.

bfd/ChangeLog
bfd/elf32-bfin.c

index a18bd2097390abdc8dec7809237742a65dea04ab..97794afeb4be5a519b3a30f0beff38132366a27b 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to
+       eliminate warnings.
+
 2006-04-05  H.J. Lu  <hongjiu.lu@intel.com>
            James E Wilson  <wilson@specifixinc.com>
 
index 8f4dfcfffd0341fd81094ca332e1521ed54b044b..d5a81dbc60575f6fe9cb3660534120a364167c86 100644 (file)
@@ -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