Do not set anal.bits twice

This commit is contained in:
pancake 2016-11-13 23:47:09 +01:00
parent c4428f088d
commit 5878c116d4

View File

@ -240,10 +240,11 @@ R_API bool r_anal_set_bits(RAnal *anal, int bits) {
case 16:
case 32:
case 64:
// if (anal->bits != bits)
anal->bits = bits;
r_anal_set_fcnsign (anal, NULL);
r_anal_set_reg_profile (anal);
if (anal->bits != bits) {
anal->bits = bits;
r_anal_set_fcnsign (anal, NULL);
r_anal_set_reg_profile (anal);
}
return true;
}
return false;