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

Bitset implementation needs used_bits field #14

Open
LeoVen opened this issue Sep 8, 2020 · 0 comments
Open

Bitset implementation needs used_bits field #14

LeoVen opened this issue Sep 8, 2020 · 0 comments
Labels
bug Something isn't working code Issues related to code help wanted Extra attention is needed will fix Something that will be eventually fixed

Comments

@LeoVen
Copy link
Owner

LeoVen commented Sep 8, 2020

Currently, bitset always uses a power of 2 size. If you want to only use 100 bits, all operations are based on 128 and might be incorrect. Operations on the last word must always be checked if all of its bits are being used.

@LeoVen LeoVen added bug Something isn't working help wanted Extra attention is needed will fix Something that will be eventually fixed code Issues related to code labels Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working code Issues related to code help wanted Extra attention is needed will fix Something that will be eventually fixed
Projects
None yet
Development

No branches or pull requests

1 participant