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

Avoid creating an out-of-bounds Char #47

Merged
merged 1 commit into from
Mar 14, 2025
Merged

Avoid creating an out-of-bounds Char #47

merged 1 commit into from
Mar 14, 2025

Conversation

meooow25
Copy link
Owner

insertRange and deleteRange can create a Char that is maxBound+1. This doesn't cause problems because 1. we create it with unsafeChr and 2. it is passed to split and simply ord-ed back.

Pass the ord value directly instead.

insertRange and deleteRange can create a Char that is maxBound+1. This
doesn't cause problems because 1. we create it with unsafeChr and 2. it
is passed to split and simply ord-ed back.

Pass the ord value directly instead.
@meooow25 meooow25 merged commit 0134f59 into master Mar 14, 2025
7 checks passed
@meooow25 meooow25 deleted the avoid-char-oob branch March 14, 2025 05:57
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