Skip to content

bug in check bit function #1

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

Open
wucz opened this issue Nov 2, 2017 · 0 comments
Open

bug in check bit function #1

wucz opened this issue Nov 2, 2017 · 0 comments

Comments

@wucz
Copy link

wucz commented Nov 2, 2017

bool BloomFilter::checkBit(unsigned int count)
{
count = count % (length * 8);
bool res = vec[count/8] & (1<<(count%8));
return res;
}

or vec will be overwrite

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

1 participant