aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-08-10 18:49:09 +0000
committerPedro Alves <palves@redhat.com>2008-08-10 18:49:09 +0000
commitae38509c56c44e4729477f9af84377f9e0405b37 (patch)
tree97bf8d50081f2730cdc4ea4959e42b0fa7ef1c51 /bfd/archive.c
parent6eb7ee032e6d1ab881dae7e5ef42d101d94f1cbd (diff)
downloadfsf-binutils-gdb-ae38509c56c44e4729477f9af84377f9e0405b37.zip
fsf-binutils-gdb-ae38509c56c44e4729477f9af84377f9e0405b37.tar.gz
fsf-binutils-gdb-ae38509c56c44e4729477f9af84377f9e0405b37.tar.bz2
* 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 0ca3db1..437a085 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;