summaryrefslogtreecommitdiff
path: root/bfd/elf32-rx.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2012-02-16 07:40:20 +0000
committerAlan Modra <amodra@bigpond.net.au>2012-02-16 07:40:20 +0000
commit89644763c99885463ba3793b9b08941a6ccf4fb3 (patch)
treeded17d79af704c3701606638bc6215c7dd4e8dde /bfd/elf32-rx.c
parent7046b041f265438fd360acf62a09ffe67263bebe (diff)
downloadbinutils-redhat-89644763c99885463ba3793b9b08941a6ccf4fb3.tar.gz
PR binutils/13355
* elf32-rx.c (elf32_rx_relax_section): Correct width check.
Diffstat (limited to 'bfd/elf32-rx.c')
-rw-r--r--bfd/elf32-rx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c
index 0ceed858a4..23e9a74140 100644
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -2115,7 +2115,7 @@ elf32_rx_relax_section (bfd * abfd,
/* Decodable bits. */
&& (insn[0] & 0xcc) == 0xcc
/* Width. */
- && (insn[0] & 0x30) != 3
+ && (insn[0] & 0x30) != 0x30
/* Register MSBs. */
&& (insn[1] & 0x88) == 0x00)
{
@@ -2219,7 +2219,7 @@ elf32_rx_relax_section (bfd * abfd,
/* Decodable bits. */
&& (insn[0] & 0xc3) == 0xc3
/* Width. */
- && (insn[0] & 0x30) != 3
+ && (insn[0] & 0x30) != 0x30
/* Register MSBs. */
&& (insn[1] & 0x88) == 0x00)
{