Skip to content
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

fix: avoid panicking when local frame adv exceeds i8 range #91

Merged
merged 1 commit into from
Dec 14, 2024

Conversation

caspark
Copy link
Contributor

@caspark caspark commented Dec 14, 2024

fixes #35 - see discussion there, particularly my latest comment for some reasoning on why I'm clamping to i16 instead of clamping to i8 or clamping to i32.

In case it isn't clear from that comment, I think clamping to i8 or i32 would be fine too - the main thing is to avoid crashing :)

@gschup gschup merged commit 534170e into gschup:main Dec 14, 2024
2 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.

local_frame_advantage bigger than i8::MAX
2 participants