Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when converting long Bool vector to LongBitStr #52

Closed
hz-xiaxz opened this issue Jun 2, 2024 · 1 comment
Closed

Error when converting long Bool vector to LongBitStr #52

hz-xiaxz opened this issue Jun 2, 2024 · 1 comment

Comments

@hz-xiaxz
Copy link
Contributor

hz-xiaxz commented Jun 2, 2024

julia> b = rand(Bool,100)
100-element Vector{Bool}:
julia> bstr = LongBitStr(b)
0111010011001100011100010100111101110000000000000000000000000000000000000000000000000000000000000000 ₍₂₎
julia> allequal(bstr[1:64])
true
# it seems like the first 64 bits of bstr are all zero, which is not expected
@GiggleLiu
Copy link
Member

It has been fixed in the master branch. Let me tag a new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants