summaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2008-08-10 18:49:09 +0000
committerPedro Alves <pedro@codesourcery.com>2008-08-10 18:49:09 +0000
commite5a97631f40cf20c5320c443f0306550950513f9 (patch)
tree0a5f6871b7737f109f4f029b9b8cb9ae6d14b412 /bfd/archive.c
parente356fcccc0c40ad688285d803c61aa4d5092bf1f (diff)
downloadbinutils-redhat-e5a97631f40cf20c5320c443f0306550950513f9.tar.gz
* archive.c (_bfd_archive_bsd_update_armap_timestamp): Cast stat
st_mtime to long before comparison.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 0ca3db1542..437a0859ea 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -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;