Skip to content

fix(AllowedRange): tweak and add AllowedRange::from_bit_size#1742

Merged
marxin merged 5 commits into
wild-linker:mainfrom
marxin:refactor-AllowedRange
Mar 21, 2026
Merged

fix(AllowedRange): tweak and add AllowedRange::from_bit_size#1742
marxin merged 5 commits into
wild-linker:mainfrom
marxin:refactor-AllowedRange

Conversation

@marxin

@marxin marxin commented Mar 21, 2026

Copy link
Copy Markdown
Collaborator

The PR touches 3 aspects:

  • introduces AllowedRange::from_bit_size that can be commonly used (rather than e.g. AllowedRange::new(-(2i64.pow(20)), 2i64.pow(20))
  • I noticed a off-by-one bug in from_byte_size connected to AllowedRange being half-opened interval (reflected in tests)
  • tweak a couple of ranges based on spec (and included a couple of comments explaining non-standard ranges)

@marxin marxin merged commit cb412f8 into wild-linker:main Mar 21, 2026
23 checks passed
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