Skip to content

Conversation

@zeroprooff
Copy link

The mask64 variable was defined as (1 << 65) - 1 which produces a 65-bit mask, not 64-bit as intended. The variable name clearly indicates a 64-bit mask was expected.

Fixed by changing to (1u128 << 64) - 1.

This doesn't change runtime behavior since as u64 truncates anyway, but now the code matches its intent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants