mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-25 02:13:06 +00:00
type: fix BoolType.__repr__()
It shouldn't include self.signed.
This commit is contained in:
parent
389f483dbb
commit
d7236962db
@ -272,6 +272,9 @@ class BoolType(IntType):
|
||||
qualifiers: FrozenSet[str] = frozenset()) -> None:
|
||||
super().__init__(name, size, False, qualifiers)
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return ArithmeticType.__repr__(self)
|
||||
|
||||
def read(self, buffer: bytes, offset: int = 0) -> bool:
|
||||
if len(buffer) - offset < self.size:
|
||||
raise ValueError(f'buffer must be at least {self.size} bytes')
|
||||
|
Loading…
Reference in New Issue
Block a user