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 sign-extend unsigned input in fromInt(). #94

Merged
merged 1 commit into from
Oct 22, 2021

Conversation

pgpnw
Copy link
Contributor

@pgpnw pgpnw commented Aug 31, 2020

fromInt() incorrectly sign-extends unsigned inputs, leading to an unsigned 32-bit input in the range 0x80000000 to 0xFFFFFFFF being converted to a Long in the range 0xFFFFFFFF80000000 to 0xFFFFFFFFFFFFFFFF.

@dcodeIO dcodeIO merged commit 0e50ccb into dcodeIO:master Oct 22, 2021
martinheidegger added a commit to consento-org/longfn that referenced this pull request Mar 20, 2022
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.

2 participants