Skip to content

Fix/wasm usize overflow - #9

Merged
NailxSharipov merged 5 commits into
mainfrom
fix/wasm_usize_overflow
Jul 29, 2026
Merged

Fix/wasm usize overflow#9
NailxSharipov merged 5 commits into
mainfrom
fix/wasm_usize_overflow

Conversation

@NailxSharipov

Copy link
Copy Markdown
Member

Fix premature conversion of key distances to usize on 32-bit targets. Distances are now shifted at their native width before conversion, preventing truncation and ensuring bin counts and indices cannot overflow usize.

Related to iShape-Rust/iTriangle#15

@NailxSharipov
NailxSharipov merged commit d8c914d into main Jul 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant