Skip to content

Commit

Permalink
bb.overlapped must be bool
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Sep 20, 2019
1 parent 4dfcc4f commit d112883
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libr/anal/fcn.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ static int fcn_recurse(RAnal *anal, RAnalFunction *fcn, ut64 addr, ut64 len, int
RAnalBlock *bb = NULL;
RAnalBlock *bbg = NULL;
int ret = R_ANAL_RET_END, skip_ret = 0;
int overlapped = 0;
bool overlapped = false;
RAnalOp op = {0};
int oplen, idx = 0;
static ut64 cmpval = UT64_MAX; // inherited across functions, otherwise it breaks :?
Expand Down Expand Up @@ -843,7 +843,7 @@ static int fcn_recurse(RAnal *anal, RAnalFunction *fcn, ut64 addr, ut64 len, int
if (anal->opt.jmpmid && is_x86) {
r_anal_fcn_split_bb (anal, fcn, bbg, at);
}
overlapped = 1;
overlapped = true;
if (anal->verbose) {
eprintf ("Overlapped at 0x%08"PFMT64x "\n", at);
}
Expand Down Expand Up @@ -1363,8 +1363,8 @@ static int fcn_recurse(RAnal *anal, RAnalFunction *fcn, ut64 addr, ut64 len, int
}
if (!op.cond) {
if (anal->verbose) {
eprintf ("RET 0x%08"PFMT64x ". %d %d %d\n",
addr + delay.un_idx - oplen, overlapped,
eprintf ("RET 0x%08"PFMT64x ". overlap=%s %d %d\n",
addr + delay.un_idx - oplen, r_str_bool (overlapped),
bb->size, r_anal_fcn_size (fcn));
}
gotoBeach (R_ANAL_RET_END);
Expand Down

0 comments on commit d112883

Please sign in to comment.