Skip to content

Don't sign-extend unsigned input in fromInt().#94

Merged
dcodeIO merged 1 commit intodcodeIO:masterfrom
pgpnw:my-branch
Oct 22, 2021
Merged

Don't sign-extend unsigned input in fromInt().#94
dcodeIO merged 1 commit intodcodeIO:masterfrom
pgpnw:my-branch

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