Skip to content

Commit

Permalink
Fix bug with base=0.
Browse files Browse the repository at this point in the history
  • Loading branch information
jim-carciofini committed Apr 24, 2024
1 parent 7d13ab3 commit d4d102a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pate_binja/pate.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,10 +734,7 @@ def get_cfar_addr_1(cfar_id:str) -> Optional[int]:
def get_addr_id(a: dict):
base = a['base']
offset = a['offset']
if base == 0:
return offset
else:
return 'S{}+{}'.format(base, offset)
return 'S{}+{}'.format(base, offset)


def get_value_id(v):
Expand Down

0 comments on commit d4d102a

Please sign in to comment.