From ae38509c56c44e4729477f9af84377f9e0405b37 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sun, 10 Aug 2008 18:49:09 +0000 Subject: [PATCH] * archive.c (_bfd_archive_bsd_update_armap_timestamp): Cast stat st_mtime to long before comparison. --- bfd/ChangeLog | 5 +++++ bfd/archive.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 14cbb1076b2..0fd031c4d6b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2008-08-09 Pedro Alves + + * archive.c (_bfd_archive_bsd_update_armap_timestamp): Cast stat + st_mtime to long before comparison. + 2008-08-08 Anatoly Sokolov * archures.c (bfd_mach_avr25, bfd_mach_avr31, bfd_mach_avr35, diff --git a/bfd/archive.c b/bfd/archive.c index 0ca3db1542e..437a0859eac 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; -- 2.30.2