mirror of
https://github.com/radareorg/radare2.git
synced 2025-03-04 12:27:40 +00:00
Fix UBSAN complaint
This commit is contained in:
parent
e83be2ef26
commit
e8b34389fc
@ -6,8 +6,8 @@
|
||||
ut32 get_msb(ut32 v) {
|
||||
int i;
|
||||
for (i = 31; i > (-1); i--) {
|
||||
if (v & (0x1 << i)) {
|
||||
return (v & (0x1 << i));
|
||||
if (v & (0x1U << i)) {
|
||||
return (v & (0x1U << i));
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user