* archive.c (_bfd_archive_bsd_update_armap_timestamp): Cast stat

st_mtime to long before comparison.
This commit is contained in:
Pedro Alves 2008-08-10 18:49:09 +00:00
parent 6eb7ee032e
commit ae38509c56
2 changed files with 6 additions and 1 deletions

View 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,

View 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;