projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ubsan: microblaze: left shift cannot be represented in type 'int'
[deliverable/binutils-gdb.git]
/
opcodes
/
microblaze-dis.c
diff --git
a/opcodes/microblaze-dis.c
b/opcodes/microblaze-dis.c
index 2b3aa8e078601d0853852d01be196bfa2bb71527..5df7ae497e9899dc17359c1f9dcf448d0d57a8e1 100644
(file)
--- a/
opcodes/microblaze-dis.c
+++ b/
opcodes/microblaze-dis.c
@@
-200,9
+200,11
@@
read_insn_microblaze (bfd_vma memaddr,
}
if (info->endian == BFD_ENDIAN_BIG)
}
if (info->endian == BFD_ENDIAN_BIG)
- inst = (ibytes[0] << 24) | (ibytes[1] << 16) | (ibytes[2] << 8) | ibytes[3];
+ inst = (((unsigned) ibytes[0] << 24) | (ibytes[1] << 16)
+ | (ibytes[2] << 8) | ibytes[3]);
else if (info->endian == BFD_ENDIAN_LITTLE)
else if (info->endian == BFD_ENDIAN_LITTLE)
- inst = (ibytes[3] << 24) | (ibytes[2] << 16) | (ibytes[1] << 8) | ibytes[0];
+ inst = (((unsigned) ibytes[3] << 24) | (ibytes[2] << 16)
+ | (ibytes[1] << 8) | ibytes[0]);
else
abort ();
else
abort ();
This page took
0.030255 seconds
and
4
git commands to generate.