]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - opcodes/rx-dis.c
Ensure *valuep always written by extract_normal return
[thirdparty/binutils-gdb.git] / opcodes / rx-dis.c
index c84f7c5d603dbcd7d5b39446f90566bd25e52f52..29ba71c12159fe93348228d29229ee8e0bd84d85 100644 (file)
@@ -1,5 +1,5 @@
 /* Disassembler code for Renesas RX.
-   Copyright (C) 2008-2019 Free Software Foundation, Inc.
+   Copyright (C) 2008-2020 Free Software Foundation, Inc.
    Contributed by Red Hat.
    Written by DJ Delorie.
 
@@ -319,7 +319,7 @@ print_insn_rx (bfd_vma addr, disassemble_info * dis)
            case '0':
            case '1':
            case '2':
-             oper = opcode.op + *s - '0';
+             oper = opcode.op + (*s - '0');
              if (do_size)
                {
                  if (oper->type == RX_Operand_Indirect || oper->type == RX_Operand_Zero_Indirect)