summaryrefslogtreecommitdiff
path: root/opcodes/tic4x-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-01-30 17:06:54 +1030
committerAlan Modra <amodra@gmail.com>2020-01-30 17:06:54 +1030
commit1bd8ae1004919317e7aa3cc2bb1d5d0d74d9f03e (patch)
tree4e97a80fb4514fbc3fa67622517bb5085faac58f /opcodes/tic4x-dis.c
parent72913831fc585ffa2bed866fb32532513ec10f8e (diff)
downloadbinutils-gdb-1bd8ae1004919317e7aa3cc2bb1d5d0d74d9f03e.tar.gz
ubsan: tic4x: left shift cannot be represented in type 'int'
The patch also fixes a case where libopcodes built for a 64-bit bfd_vma may print different results to libopcodes built for a 32-bit bfd_vma. * tic4x-dis.c (tic4x_dp): Make unsigned.
Diffstat (limited to 'opcodes/tic4x-dis.c')
-rw-r--r--opcodes/tic4x-dis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/tic4x-dis.c b/opcodes/tic4x-dis.c
index 33d75c878b8..a99b52a7ad0 100644
--- a/opcodes/tic4x-dis.c
+++ b/opcodes/tic4x-dis.c
@@ -52,7 +52,7 @@ typedef enum
indirect_t;
static unsigned long tic4x_version = 0;
-static int tic4x_dp = 0;
+static unsigned int tic4x_dp = 0;
static tic4x_inst_t **optab = NULL;
static tic4x_inst_t **optab_special = NULL;
static const char *registernames[REG_TABLE_SIZE];