* archive.c (_bfd_archive_bsd_update_armap_timestamp): Cast stat
authorPedro Alves <palves@redhat.com>
Sun, 10 Aug 2008 18:49:09 +0000 (18:49 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 10 Aug 2008 18:49:09 +0000 (18:49 +0000)
st_mtime to long before comparison.

bfd/ChangeLog
bfd/archive.c

index 14cbb1076b2a5570d5b1432a576d64cfe7d4fc0f..0fd031c4d6be68263b2580145a16ff4fab08b65e 100644 (file)
@@ -1,3 +1,8 @@
+2008-08-09  Pedro Alves  <pedro@codesourcery.com>
+
+       * archive.c (_bfd_archive_bsd_update_armap_timestamp): Cast stat
+       st_mtime to long before comparison.
+
 2008-08-08  Anatoly Sokolov  <aesok@post.ru>
 
        * archures.c (bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35,
index 0ca3db1542e0043a91a9ceb52cbfc7bc79d17603..437a0859eaccbb01583382925420e9b737b17d86 100644 (file)
@@ -2311,7 +2311,7 @@ _bfd_archive_bsd_update_armap_timestamp (bfd *arch)
       /* Can't read mod time for some reason.  */
       return TRUE;
     }
-  if (archstat.st_mtime <= bfd_ardata (arch)->armap_timestamp)
+  if (((long) archstat.st_mtime) <= bfd_ardata (arch)->armap_timestamp)
     /* OK by the linker's rules.  */
     return TRUE;