Skip to content

fix(core): Use more checked arithmetic, part 2b#9425

Open
andyleiserson wants to merge 1 commit intogfx-rs:trunkfrom
andyleiserson:jj-push-zvtw
Open

fix(core): Use more checked arithmetic, part 2b#9425
andyleiserson wants to merge 1 commit intogfx-rs:trunkfrom
andyleiserson:jj-push-zvtw

Conversation

@andyleiserson
Copy link
Copy Markdown
Contributor

@andyleiserson andyleiserson commented Apr 13, 2026

Follow-up to #9363 to address comments and add changelog entry.

This changes align_to to always panic if it would overflow (and removes assertions that did that in specific instances). Other than that, it should just be changing error reporting behavior.

Squash or Rebase? Squash

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy --tests. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

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.

1 participant