mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-13 09:11:49 +00:00
Fix 32bit issue while constructing method flags
- 1L = 32bit on 32bit and 64bit on 64bits, must be 1LL - otherwise the <<n overflows and iters twice the same bits
This commit is contained in:
parent
ff7b6c1df2
commit
18890c6dcb
@ -3104,10 +3104,9 @@ R_API char *r_core_bin_method_flags_str(ut64 flags, int mode) {
|
||||
r_strbuf_append (buf, "[");
|
||||
|
||||
for (i = 0; i != 64; i++) {
|
||||
ut64 flag = flags & (1L << i);
|
||||
ut64 flag = flags & (1LL << i);
|
||||
if (flag) {
|
||||
const char *flag_string = r_bin_get_meth_flag_string (flag, false);
|
||||
|
||||
if (len != 0) {
|
||||
r_strbuf_append (buf, ",");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user