Skip to content

Commit

Permalink
Fix len=0 cmt render
Browse files Browse the repository at this point in the history
  • Loading branch information
mahaloz committed Jul 8, 2024
1 parent 7c919bd commit f96f574
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libbs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "1.10.1"
__version__ = "1.10.2"


import logging
Expand Down
3 changes: 2 additions & 1 deletion libbs/artifacts/comment.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ def __init__(
self.decompiled = decompiled

def __str__(self):
return f"<Comment: @{hex(self.addr)} len={len(self.comment)}>"
cmt_len = len(self.comment) if self.comment else 0
return f"<Comment: @{hex(self.addr)} len={cmt_len}>"

@staticmethod
def linewrap_comment(comment: str, width=80):
Expand Down

0 comments on commit f96f574

Please sign in to comment.