Change type of 'addr' to be unsigned long, in order to match its use.
authorNick Clifton <nickc@redhat.com>
Fri, 11 May 2001 09:55:02 +0000 (09:55 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 11 May 2001 09:55:02 +0000 (09:55 +0000)
bfd/ChangeLog
bfd/dwarf1.c

index 29d153c0b299d20c5553154b4eb223d75508d673..afb0e2642b1319528ad60ae319961b5f0f8e4503 100644 (file)
@@ -1,3 +1,8 @@
+2001-05-11  Nick Clifton  <nickc@cambridge.redhat.com>
+
+       * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
+       to be unsigned long, in order to match its use.
+
 2001-05-10  H.J. Lu  <hjl@gnu.org>
 
        * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
index b96adc5b4525008851765a95c6f3f57ab0d063f5..2fef2ef51890c0a4086fb13a24fbf8dc7fc6637e 100644 (file)
@@ -458,7 +458,7 @@ _bfd_dwarf1_find_nearest_line (abfd, section, symbols, offset,
   struct dwarf1_unit* eachUnit;
 
   /* What address are we looking for? */
-  bfd_vma addr = offset + section->vma;
+  unsigned long addr = (unsigned long)(offset + section->vma);
 
   *filename_ptr = NULL;
   *functionname_ptr = NULL;