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

exec: fix float comparison for -0 #38912

Merged
merged 1 commit into from
Jul 16, 2019

Conversation

solongordon
Copy link
Contributor

We got too fancy with our float comparison function, so it was not
handling the 0 == -0 case because those values have different bit
representations.

Release note: None

We got too fancy with our float comparison function, so it was not
handling the 0 == -0 case because those values have different bit
representations.

Release note: None
@solongordon solongordon requested review from jordanlewis, yuzefovich and a team July 16, 2019 20:56
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@jordanlewis jordanlewis left a comment

Choose a reason for hiding this comment

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

:lgtm:, sorry about sending you on a bad path there...

Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @jordanlewis and @yuzefovich)

@solongordon
Copy link
Contributor Author

bors r+

craig bot pushed a commit that referenced this pull request Jul 16, 2019
38912: exec: fix float comparison for -0 r=solongordon a=solongordon

We got too fancy with our float comparison function, so it was not
handling the 0 == -0 case because those values have different bit
representations.

Release note: None

Co-authored-by: Solon Gordon <solon@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Jul 16, 2019

Build succeeded

@craig craig bot merged commit 99bc54d into cockroachdb:master Jul 16, 2019
@solongordon solongordon deleted the fix-float-zero-comparison branch July 17, 2019 12:00
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.

3 participants