summaryrefslogtreecommitdiffstats
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
commitcd99171ce11492f3cbbbbdae988601d0124bd4ef (patch)
tree541e16025e2f08209db79c0813091f1c23552d78 /bfd/archive.c
parentf6616a063ce25130bc4abe5e52d3d2a2c009a88b (diff)
downloadppe42-binutils-cd99171ce11492f3cbbbbdae988601d0124bd4ef.tar.gz
ppe42-binutils-cd99171ce11492f3cbbbbdae988601d0124bd4ef.zip
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"))
OpenPOWER on IntegriCloud