Skip to content

Commit

Permalink
Fix missing f-string format for bit fields (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
burneykb authored Jan 6, 2024
1 parent ffbf4f8 commit 8d61e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dissect/cstruct/types/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, name: str, type_: BaseType, bits: int = None, offset: int = N
self.alignment = type_.alignment

def __repr__(self):
bits_str = " : {self.bits}" if self.bits else ""
bits_str = f" : {self.bits}" if self.bits else ""
return f"<Field {self.name} {self.type}{bits_str}>"


Expand Down

0 comments on commit 8d61e1c

Please sign in to comment.