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

Fix: Correct basic_charset operator #203

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

alexbarev
Copy link
Collaborator

Should have returned result.

basic_charset operator|(basic_charset other) const noexcept {
basic_charset result = *this;
result.bitset_._u64s[0] |= other.bitset_._u64s[0], result.bitset_._u64s[1] |= other.bitset_._u64s[1],
result.bitset_._u64s[2] |= other.bitset_._u64s[2], result.bitset_._u64s[3] |= other.bitset_._u64s[3];
return *this;

@ashvardanian ashvardanian merged commit e20d207 into ashvardanian:main-dev Dec 9, 2024
@ashvardanian
Copy link
Owner

Much appreciated, @alexbarev!

@alexbarev alexbarev deleted the fix-basic-charset branch December 9, 2024 09:48
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

Successfully merging this pull request may close these issues.

2 participants