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:
pancake 2017-06-29 17:32:01 +02:00
parent ff7b6c1df2
commit 18890c6dcb

View File

@ -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, ",");
}