From cd99171ce11492f3cbbbbdae988601d0124bd4ef Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 2 Feb 2012 11:35:31 +0000 Subject: [PATCH] 2012-02-02 Tristan Gingold * archive.c (bfd_slurp_armap): Fix thinko in cast. --- bfd/ChangeLog | 4 ++++ bfd/archive.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2b0dceec86f..ad85fca5f9b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2012-02-02 Tristan Gingold + + * archive.c (bfd_slurp_armap): Fix thinko in cast. + 2012-01-31 H.J. Lu PR ld/13616 diff --git a/bfd/archive.c b/bfd/archive.c index 86c62a5f7e0..fd44f5405fe 100644 --- a/bfd/archive.c +++ b/bfd/archive.c @@ -1103,7 +1103,7 @@ bfd_slurp_armap (bfd *abfd) /* Read the extended name. We know its length. */ if (bfd_bread (extname, 20, abfd) != 20) return FALSE; - if (bfd_seek (abfd, (file_ptr) -(sizeof (hdr) + 20), SEEK_CUR) != 0) + if (bfd_seek (abfd, -(file_ptr) (sizeof (hdr) + 20), SEEK_CUR) != 0) return FALSE; if (CONST_STRNEQ (extname, "__.SYMDEF SORTED") || CONST_STRNEQ (extname, "__.SYMDEF")) -- 2.30.2