summaryrefslogtreecommitdiff
path: root/bfd/coff-sh.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2015-08-11 17:02:25 +0100
committerNick Clifton <nickc@redhat.com>2015-08-11 17:02:25 +0100
commit4c0160b8e2f902ecdf6a42dc20b5f39b0a48fac7 (patch)
tree18227598fcb523a1367ed3da5094f5facb6b234c /bfd/coff-sh.c
parentc8373ebb4ed77c361d95aa806cfbe1b4062b5be5 (diff)
downloadbinutils-gdb-4c0160b8e2f902ecdf6a42dc20b5f39b0a48fac7.tar.gz
Fix typo in coff-sh.c.
PR binutils/18747 * coff-sh.c (_bfd_sh_align_load_span): Fix typo when setting opcode count.
Diffstat (limited to 'bfd/coff-sh.c')
-rw-r--r--bfd/coff-sh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c
index 5fb4da2b8ed..e52fffa6e16 100644
--- a/bfd/coff-sh.c
+++ b/bfd/coff-sh.c
@@ -2327,7 +2327,7 @@ _bfd_sh_align_load_span (bfd *abfd,
if (dsp)
{
sh_opcodes[0xf].minor_opcodes = sh_dsp_opcodef;
- sh_opcodes[0xf].count = sizeof sh_dsp_opcodef / sizeof sh_dsp_opcodef;
+ sh_opcodes[0xf].count = sizeof sh_dsp_opcodef / sizeof sh_dsp_opcodef [0];
}
/* Instructions should be aligned on 2 byte boundaries. */