summaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-02-02 11:35:31 +0000
committerTristan Gingold <gingold@adacore.com>2012-02-02 11:35:31 +0000
commita0bd6e64629496b490e52c8b8fa7bc4fb7f0c66b (patch)
tree0cffb2b66800a409f963b1b96ca10ab7e44ca454 /bfd/archive.c
parentd2d5729ddef7fd7ed025281e1a925f365e899e41 (diff)
downloadbinutils-redhat-a0bd6e64629496b490e52c8b8fa7bc4fb7f0c66b.tar.gz
2012-02-02 Tristan Gingold <gingold@adacore.com>
* archive.c (bfd_slurp_armap): Fix thinko in cast.
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 86c62a5f7e..fd44f5405f 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"))