ubsan: vax: left shift cannot be represented in type 'int'
[deliverable/binutils-gdb.git] / opcodes / vax-dis.c
index 2c02c29d72d4d22d202c56d32f09a03cb06991f9..3bdfa151920434131b2dcc0abe241ef943212ee9 100644 (file)
@@ -64,7 +64,7 @@ static char *entry_mask_bit[] =
 #define COERCE32(x) ((int) (((x) ^ 0x80000000) - 0x80000000))
 #define NEXTLONG(p)  \
   (p += 4, FETCH_DATA (info, p), \
-   (COERCE32 ((((((p[-1] << 8) + p[-2]) << 8) + p[-3]) << 8) + p[-4])))
+   (COERCE32 (((((((unsigned) p[-1] << 8) + p[-2]) << 8) + p[-3]) << 8) + p[-4])))
 
 /* Maximum length of an instruction.  */
 #define MAXLEN 25
This page took 0.024473 seconds and 4 git commands to generate.