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

Go: fix FP in incorrect integer conversion query relating to strict comparisons with MaxInt and MaxUint #15128

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Dec 17, 2023

The new logic for comparing with MaxInt and MaxUint had a logic error which affected strict inequailities. So x <= MaxUint would work but x < MaxUint wouldn't.

The cause of the test failure is confusion about
whether the architecture is 32 bit or 64 bit.
It was wrong for strictnessOffset = 1 before.
@owen-mc owen-mc requested a review from a team as a code owner December 17, 2023 06:19
@github-actions github-actions bot added the Go label Dec 17, 2023
@owen-mc owen-mc force-pushed the go/fix-fp-incorrect-integer-conversion-signedness branch from 454ba3a to 5a2c48f Compare December 17, 2023 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant