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 comparison logic in Int.Cmp to correctly handle 0 and -0 #11

Merged

Conversation

louisgthier
Copy link
Contributor

This pull request addresses an issue in the Int.Cmp function where it was not correctly comparing 0 and -0.

The changes in this PR modify the Int.Cmp function to correctly handle this case. Now, 0 and -0 are correctly identified as equal.

In addition to the fix, a new test case has been added to verify the correct behavior of the Int.Cmp function when comparing 0 and -0.

@linhbkhn95
Copy link
Owner

LGTM!

@linhbkhn95 linhbkhn95 merged commit d7d8d5a into linhbkhn95:master May 20, 2024
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