diff options
author | Tristan Gingold <gingold@adacore.com> | 2012-02-02 11:35:31 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2012-02-02 11:35:31 +0000 |
commit | cd99171ce11492f3cbbbbdae988601d0124bd4ef (patch) | |
tree | 541e16025e2f08209db79c0813091f1c23552d78 | |
parent | f6616a063ce25130bc4abe5e52d3d2a2c009a88b (diff) | |
download | gdb-cd99171ce11492f3cbbbbdae988601d0124bd4ef.zip gdb-cd99171ce11492f3cbbbbdae988601d0124bd4ef.tar.gz gdb-cd99171ce11492f3cbbbbdae988601d0124bd4ef.tar.bz2 |
2012-02-02 Tristan Gingold <gingold@adacore.com>
* archive.c (bfd_slurp_armap): Fix thinko in cast.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/archive.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2b0dcee..ad85fca 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2012-02-02 Tristan Gingold <gingold@adacore.com> + + * archive.c (bfd_slurp_armap): Fix thinko in cast. + 2012-01-31 H.J. Lu <hongjiu.lu@intel.com> PR ld/13616 diff --git a/bfd/archive.c b/bfd/archive.c index 86c62a5..fd44f54 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")) |