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

Don't rewrite equal to == for floating-point values. #4401

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link
Contributor

Don't rewrite equal to == for floating-point values.

Objects.equal(a_double, another_double) and a_double == another_double have different semantics (different result when both compared values are NaN). This is especially relevant when implementing equals methods.

Fixes #4392

Fixes #4394

FUTURE_COPYBARA_INTEGRATE_REVIEW=#4394 from findepi:findepi/double-compare 603b9c6

@copybara-service copybara-service bot closed this May 16, 2024
@copybara-service copybara-service bot deleted the test_634390506 branch May 16, 2024 15: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
0 participants