Skip to content

Commit

Permalink
[REFACT] Renamed a variable
Browse files Browse the repository at this point in the history
  • Loading branch information
hasherezade authored Jun 3, 2020
1 parent 18fca57 commit 1897ff5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ifl.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,13 +214,13 @@ def __init__(self, start, end, refs_list, called_list, is_import=False):
def contains(self, addr):
"""Check if the given address lies inside the function.
"""
bng = self.start
bgn = self.start
end = self.end
# swap if order is opposite:
if self.start > self.end:
end = self.start
bng = self.end
if addr >= bng and addr < end:
bgn = self.end
if addr >= bgn and addr < end:
return True
return False
# --------------------------------------------------------------------------
Expand Down

0 comments on commit 1897ff5

Please sign in to comment.