Skip to content

Fix incorrect index handling in is_boundary. - #150

Merged
staktrace merged 1 commit into
masterfrom
bytefix
Nov 13, 2026
Merged

staktrace merged 1 commit into
masterfrom
bytefix

Conversation

@staktrace

Copy link
Copy Markdown
Owner

The function is passed a byte index but was using it as a char index, which was incorrect. This unwinds the change in #27 and fixes it correctly.

The function is passed a byte index but was using it as a char
index, which was incorrect. This unwinds the change in #27 and
fixes it correctly.
@staktrace

Copy link
Copy Markdown
Owner Author

This also fixes #149 by removing the chars(n) call that made the usage quadratic

@staktrace
staktrace merged commit a456417 into master Nov 13, 2026
5 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.

1 participant