Skip to content

Parse signed hex values #2258

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

Merged
merged 4 commits into from
Nov 12, 2020
Merged

Parse signed hex values #2258

merged 4 commits into from
Nov 12, 2020

Conversation

MirceaS
Copy link
Contributor

@MirceaS MirceaS commented Nov 11, 2020


Fixes #2251

As can be seen from the code, the decimal case just above my change already contains Text.signed which leads me to believe that for the hex case it was left out on purpose so may need further investigation.

Reviewer checklist
  • Test coverage: stack test --coverage
  • Public API documentation: stack haddock

@MirceaS MirceaS added the bug label Nov 11, 2020
@MirceaS MirceaS self-assigned this Nov 11, 2020
@MirceaS MirceaS requested a review from ttuegel November 11, 2020 00:17
Copy link
Contributor

@ttuegel ttuegel left a comment

Choose a reason for hiding this comment

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

Please write a unit test.

@ttuegel ttuegel changed the title Made hex value parsing accept signed values Parse signed hex values Nov 11, 2020
@ttuegel ttuegel self-requested a review November 12, 2020 15:11
@MirceaS MirceaS merged commit b1de2cf into master Nov 12, 2020
@MirceaS MirceaS deleted the 2251 branch November 12, 2020 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

STRING.string2base doesn't handle negative hex values
2 participants