* aoutx.h (NAME(aout,swap_ext_reloc_in)): Cast bytes->r_index to
[deliverable/binutils-gdb.git] / bfd / section.c
index 51b21c70fbbf2f65b4bfce57889621f50324b7b8..b5871e9bbfa78265b5461deb338f751441a6d3bc 100644 (file)
@@ -643,7 +643,8 @@ bfd_section_hash_newfunc (entry, table, string)
      subclass.  */
   if (entry == NULL)
     {
-      entry = bfd_hash_allocate (table, sizeof (struct section_hash_entry));
+      entry = (struct bfd_hash_entry *)
+       bfd_hash_allocate (table, sizeof (struct section_hash_entry));
       if (entry == NULL)
        return entry;
     }
@@ -1186,7 +1187,7 @@ bfd_set_section_contents (abfd, section, location, offset, count)
 
   /* Record a copy of the data in memory if desired.  */
   if (section->contents
-      && location != section->contents + offset)
+      && location != (PTR) (section->contents + offset))
     memcpy (section->contents + offset, location, (size_t) count);
 
   if (BFD_SEND (abfd, _bfd_set_section_contents,
This page took 0.024384 seconds and 4 git commands to generate.