aboutsummaryrefslogtreecommitdiff
path: root/include/dis-asm.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2019-12-10 18:58:38 +1030
committerAlan Modra <amodra@gmail.com>2019-12-11 11:35:42 +1030
commit76bba5ee850ea391ebdbb54dda5a06a567526dbf (patch)
tree32a1d2cc5bb28166663b7826c69c52a99b3ac33a /include/dis-asm.h
parent567607c11fbf710513d0924192f3ed528c02d76f (diff)
downloadgdb-76bba5ee850ea391ebdbb54dda5a06a567526dbf.zip
gdb-76bba5ee850ea391ebdbb54dda5a06a567526dbf.tar.gz
gdb-76bba5ee850ea391ebdbb54dda5a06a567526dbf.tar.bz2
ubsan: left shift of cannot be represented in type 'int'
* dis-asm.h (INSN_HAS_RELOC, DISASSEMBLE_DATA), (USER_SPECIFIED_MACHINE_TYPE, WIDE_OUTPUT): Make unsigned. * opcode/tic80.h (TIC80_OPERAND_*): Likewise.
Diffstat (limited to 'include/dis-asm.h')
-rw-r--r--include/dis-asm.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/dis-asm.h b/include/dis-asm.h
index 82bf4dc..b2a09f8 100644
--- a/include/dis-asm.h
+++ b/include/dis-asm.h
@@ -105,14 +105,14 @@ typedef struct disassemble_info
unsigned long flags;
/* Set if the disassembler has determined that there are one or more
relocations associated with the instruction being disassembled. */
-#define INSN_HAS_RELOC (1 << 31)
+#define INSN_HAS_RELOC (1u << 31)
/* Set if the user has requested the disassembly of data as well as code. */
-#define DISASSEMBLE_DATA (1 << 30)
+#define DISASSEMBLE_DATA (1u << 30)
/* Set if the user has specifically set the machine type encoded in the
mach field of this structure. */
-#define USER_SPECIFIED_MACHINE_TYPE (1 << 29)
+#define USER_SPECIFIED_MACHINE_TYPE (1u << 29)
/* Set if the user has requested wide output. */
-#define WIDE_OUTPUT (1 << 28)
+#define WIDE_OUTPUT (1u << 28)
/* Use internally by the target specific disassembly code. */
void *private_data;