8000 Fix: Wrong `get` logic in `Bitmap` class. by ElPrudi · Pull Request #15 · Torathion/bitbob · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix: Wrong get logic in Bitmap class. #15

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

Merged
merged 5 commits into from
Mar 24, 2025

Conversation

ElPrudi
Copy link
Contributor
@ElPrudi ElPrudi commented Mar 24, 2025

Today, I saw that you added my fixes and enhancements to the project. I'm grateful for that. Unfortunately, while I was migrating from bitbob 2 to bitbob 3, I realized that the get function wasn't working correctly. While dividing the power of 2 from the Bitmap state does work for the small powers of 2, it doesn't work for large powers like 2048. Luckily, you've introduced ILogPow2 in a previous update. Using that makes it work correctly for all powers of 2.

@ElPrudi ElPrudi changed the title Fix/bitmap get Fix: Wrong get logic in Bitmap class. Mar 24, 2025
Copy link
pkg-pr-new bot commented Mar 24, 2025

Open in Stackblitz

npm i https://pkg.pr.new/bitbob@15

commit: 542d7be

Copy link
codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

@ElPrudi
Copy link
Contributor Author
ElPrudi commented Mar 24, 2025

Another thing: If you use the Bitmap class, it can't find the get method. I've adjusted the type defs now.

@Torathion
Copy link
Owner

Thank you very much! And I deeply apologize for not thoroughly checking it. It was a last minute change to get the tests working and this update was rushed anyway. I should've tested my stuff more.

@Torathion Torathion merged commit f505fda into Torathion:main Mar 24, 2025
7 checks passed
@ElPrudi ElPrudi deleted the fix/bitmap-get branch March 25, 2025 09:28
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
0