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: Remove and int overflow crash #1446

Merged
merged 1 commit into from
Feb 21, 2025
Merged

Conversation

adrien-coye
Copy link
Contributor

@adrien-coye adrien-coye commented Feb 21, 2025

Casting NSNotFound (a large Int64 on 64bit arch, 32 in 32bit mode) into Int32 was crashing.
This removes the need for a NSNotFound, and still has a meaningful value that is not zero when not set.

@adrien-coye adrien-coye added the bug Something isn't working label Feb 21, 2025
@adrien-coye adrien-coye force-pushed the fix/crash-on-int32-overflow branch from 1d0f0de to 10c1e36 Compare February 21, 2025 10:37
@adrien-coye adrien-coye merged commit c7e1363 into master Feb 21, 2025
8 checks passed
@adrien-coye adrien-coye deleted the fix/crash-on-int32-overflow branch February 21, 2025 10:44
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.

2 participants