Move free_all_objfiles to program_space
[deliverable/binutils-gdb.git] / opcodes / tic6x-dis.c
index 36075da115725f45082806b3871a436cbab0ebdf..45a1e98f2a26cb6d57e32e98c5177978beb9d0be 100644 (file)
@@ -163,9 +163,9 @@ static unsigned int
 tic6x_extract_32 (unsigned char *p, struct disassemble_info *info)
 {
   if (info->endian == BFD_ENDIAN_LITTLE)
-    return (p[0]) | (p[1] << 8) | (p[2] << 16) | (p[3] << 24);
+    return p[0] | (p[1] << 8) | (p[2] << 16) | ((unsigned) p[3] << 24);
   else
-    return (p[3]) | (p[2] << 8) | (p[1] << 16) | (p[0] << 24);
+    return p[3] | (p[2] << 8) | (p[1] << 16) | ((unsigned) p[0] << 24);
 }
 
 /* Extract a 16-bit value read from the instruction stream.  */
This page took 0.036674 seconds and 4 git commands to generate.