Skip to content

Conversation

dhalbert
Copy link
Collaborator

Fixes #2579.

Uses existing latent support for signed conversions. It was mostly just the arg parsing. Tests added.

Implementing from_bytes(..., signed=True) is harder: #2624.

@dhalbert dhalbert requested a review from tannewt February 14, 2020 20:15
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Great! Thank you! @dpgeorge may want to pull this upstream too.

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.

to_bytes() doesn't handle negative numbers properly
2 participants