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 getting address of cluster 0 #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aj-bagwell
Copy link

Due to the changes in 530b663 to suuport larger disk the math to covert a
to an address underflows then it cast to a wider int without sign extention
leaving a bit set in the middle of the number.

This change moves the subtraction to happen after the other additions
and widening thus prevting any underflow issues.

fixes #30

Due to the changes in 530b663 to suuport larger disk the math to covert a
to an address underflows then it cast to a wider int without sign extention
leaving a bit set in the middle of the number.

This change moves the subtraction to happen after the other additions
and widening thus prevting any underflow issues.
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.

Cluster address printed for cluster zero is wrong
1 participant