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 calculations of whether to write updated child indexes. #814

Merged
merged 1 commit into from Jun 13, 2017

Conversation

jrick
Copy link
Member

@jrick jrick commented Jun 13, 2017

The new checks compare incremented values. This is done so that the
sentinel value ^uint32(0), when incremented, wraps around to 0 and
when compared against non-zero child indexes, the check will determine
that the update to increase to child index should be performed.

Fixes #813.

The new checks compare incremented values.  This is done so that the
sentinel value ^uint32(0), when incremented, wraps around to 0 and
when compared against non-zero child indexes, the check will determine
that the update to increase to child index should be performed.
Copy link
Member

@alexlyp alexlyp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tACK fixes my reported issue

@jrick jrick merged commit 42af5c2 into decred:master Jun 13, 2017
@jrick jrick deleted the childcheck branch June 13, 2017 20:17
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.

None yet

2 participants