Skip to content

Conversation

@blishko
Copy link
Collaborator

@blishko blishko commented Sep 17, 2025

The maximum signed value needs to start with 8 in hex, so that the most significant byte is 1000. If it starts with 1, the byte would be 0001. This would be a positive number.
Moreover, the smallest value should be the largest value plus one. And the largest signed value is
0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff.

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

The maximum signed value needs to start with 8 in hex, so that the most
significant byte is `1000`. If it starts with `1`, the byte would be
`0001`. This would be a positive number.
Moreover, the smallest value should be the largest value plus one.
And the largest signed value is
`0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff`.
@blishko blishko requested a review from msooseth September 17, 2025 15:51
@msooseth
Copy link
Collaborator

I'm... sorry. Yes.

Copy link
Collaborator

@msooseth msooseth left a comment

Choose a reason for hiding this comment

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

I owe you a beer.

@blishko blishko merged commit dd73769 into main Sep 17, 2025
13 of 14 checks passed
@blishko blishko deleted the fix-maxlitsigned branch September 17, 2025 16:39
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.

3 participants