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

Fixes a bug with the bitset hash #171

Merged
merged 3 commits into from
Nov 7, 2023
Merged

Conversation

RoyconSkylands
Copy link
Contributor

When a component type has a ID that borders a uint size (32, 64, 96) the bitset isnt big enough
I'm just +1 to the highestId

I tried removing the highestId find foreach, and just using ComponentRegistry.Size
However this broke my new tests and the HashSimilarity test as the ComponentRegistry isnt actually setup during these tests

For now heres a fix

@LilithSilver
Copy link
Contributor

LilithSilver commented Nov 7, 2023

Did this end up fixing genaray/Arch.Extended#26?

If so, could you add the tests from that issue in an Arch.Extended PR as well? Or I can.

@genaray genaray merged commit f4da5f0 into genaray:master Nov 7, 2023
1 check passed
@RoyconSkylands RoyconSkylands deleted the bitset-bug branch May 19, 2024 20:46
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.

3 participants