We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e941f commit 7972e4bCopy full SHA for 7972e4b
pyrp3/instrument.py
@@ -23,9 +23,7 @@ def __init__(self, size):
23
self.size = size
24
25
def to_python(self, val):
26
- return int(
27
- intbv(val & (2**self.size - 1), min=0, max=2**self.size).signed()
28
- )
+ return int(intbv(val & (2**self.size - 1), min=0, max=2**self.size).signed())
29
30
def to_binary(self, val):
31
return intbv(val, min=-(2 ** (self.size - 1)), max=2 ** (self.size - 1))[
0 commit comments