Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: whitequark/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 19fdbdec71bd
Choose a base ref
...
head repository: whitequark/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: df28aa5f2749
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 8, 2019

  1. Copy the full SHA
    df28aa5 View commit details
Showing with 4 additions and 0 deletions.
  1. +4 −0 software/glasgow/support/bits.py
4 changes: 4 additions & 0 deletions software/glasgow/support/bits.py
Original file line number Diff line number Diff line change
@@ -81,6 +81,10 @@ def from_bitarray(cls, data):
pack._bits = bitarray(data, endian="little")
return pack

@classmethod
def __len__(cls):
return cls._size_bits

def __init__(self, *args, **kwargs):
self._bits = bitarray(self._size_bits, endian="little")
self._bits[:] = 0