Skip to content

Commit

Permalink
Fix bug in copying binary vectors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkskeller committed May 4, 2023
1 parent fac4890 commit c62ab2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Compiler/GC/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,7 @@ def __init__(self, other=None, size=None):
self.v = [t(((other >> i) & 1) * ((1 << t.n) - 1))
for i in range(n)]
elif isinstance(other, _vec):
self.v = self.bit_extend(other.v, n)
self.v = [type(x)(x) for x in self.bit_extend(other.v, n)]
elif isinstance(other, (list, tuple)):
self.v = self.bit_extend(sbitvec(other).v, n)
else:
Expand Down

0 comments on commit c62ab2c

Please sign in to comment.