Skip to content

fix: align hashing, tidy pow integer exponents#6

Closed
cheehenn wants to merge 4 commits intomainfrom
cnos-typing-fixes
Closed

fix: align hashing, tidy pow integer exponents#6
cheehenn wants to merge 4 commits intomainfrom
cnos-typing-fixes

Conversation

@cheehenn
Copy link
Contributor

This PR improves numeric correctness and cleans up the implementation
details around hashing and exponentiation.

Changes:

  • Align Hash behavior with canonical equality so values that compare
    equal hash consistently.
  • Rework pow integer-exponent handling (including negative exponents
    and signed zero edge cases) and use a single exponentiation-by-
    squaring path.
  • Address clippy findings and apply cargo fmt formatting.

Validation:

  • cargo test --all-features
  • cargo fmt --all --check
  • cargo clippy --all-features -- -D warnings

@cheehenn cheehenn closed this Dec 13, 2025
@cheehenn cheehenn deleted the cnos-typing-fixes branch December 13, 2025 17:04
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.

1 participant